Skip to content

Commit

Permalink
[c-interface] internal defines must be declared first
Browse files Browse the repository at this point in the history
An internal (define) cannot be after a statement such
as (issue-deprecation-warning). This rule was strict in guile-2.2 but
relaxed in guile-3.0, hence, the mixed results in CI.
  • Loading branch information
christopherlam committed Dec 24, 2020
1 parent bf671d4 commit 0510ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgnucash/app-utils/c-interface.scm
Expand Up @@ -88,9 +88,9 @@
;; strings. Strings that are returned by the lookup function are
;; translated with gettext.
(define (gnc:make-string-database)
(define string-hash (make-hash-table))
(issue-deprecation-warning "gnc:make-string-database is deprecated. It \
will be removed in GnuCash 5.x")
(define string-hash (make-hash-table))
(lambda args
(match args
(('lookup key) (G_ (hash-ref string-hash key)))
Expand Down

0 comments on commit 0510ecf

Please sign in to comment.