]> git.donarmstrong.com Git - lilypond.git/commit
Issue 2758. ly_module_lookup caused deprecation warnings with Guile V2.06.
authorIan Hulin <ian@hulin.org.uk>
Sun, 16 Sep 2012 21:10:13 +0000 (22:10 +0100)
committerIan Hulin <ian@hulin.org.uk>
Sat, 22 Sep 2012 17:24:40 +0000 (18:24 +0100)
commitb89b87d14b6a5b32f46ecdf10dfa0d023a34d3a2
tree32806fe41710635056f333cb075f4525ae76e820
parent68d66bf3542ca2349dd0cd9bb89a945186db26fe
Issue 2758. ly_module_lookup caused deprecation warnings with Guile V2.06.
The V2.17.0 definition of ly_module_lookup in module-scheme.cc uses two
functions, scm_sym2var and scm_module_lookup_closure, which issue
deprecation warnings in Guile V2.06.  A call to the new Guile API function,
scm_module_variable, provides the functionality for both deprecated
routines, but has not been back-ported to Guile V1.8.

This patch adds a conditionally-compiled block when running with a Guile
version < V2.0, so that Guile V1 will not use the deprecated scm_ calls
in ly_module_lookup, and Guile V2 will use API call scm_module_variable.
flower/include/guile-compatibility.hh
lily/module-scheme.cc