11 Jul 2012 00:48
Guile 2.0.6
Dale Smith <dalepsmith <at> gmail.com>
2012-07-10 22:48:44 GMT
2012-07-10 22:48:44 GMT
Howdy g-wrappers,
G-wrap doesn't like the new Guile 2.0.6 as scm_sym2var and
scm_module_lookup_closure are now deprecated. And since the default
is to compile with -Werror, that ends in a failed build. Configuring
with --disable-Werror seems to work fine.
Here is an attempt to use a the newer non-deprecated replacements.
diff --git a/guile/g-wrap/guile-compatibility.c
b/guile/g-wrap/guile-compatibility.c
index 8be423e..cc1fc2f 100644
--- a/guile/g-wrap/guile-compatibility.c
+++ b/guile/g-wrap/guile-compatibility.c
<at> <at> -92,4 +92,10 <at> <at> scm_without_guile (void*(*func)(void*), void *data)
return func(data);
}
+SCM scm_module_variable (SCM module, SCM sym)
+{
+ return scm_sym2var (sym, scm_module_lookup_closure (module), SCM_BOOL_F);
+}
+
+
#endif
diff --git a/guile/g-wrap/guile-compatibility.h
b/guile/g-wrap/guile-compatibility.h
index c875e98..5ccacdf 100644
--- a/guile/g-wrap/guile-compatibility.h
+++ b/guile/g-wrap/guile-compatibility.h
(Continue reading)
RSS Feed