The attached bundle fixes a compile warning in guile-gnome. It's a bit
suboptimal; see the comments in the bundle for more information. With
this patch, guile-gnome builds fine and works with up-to-date g-wrap and
up-to-date guile-gnome.
Cheers,
Wingo.
--
http://wingolog.org/
# Bazaar revision bundle v0.8
#
# message:
# 2006-09-01 Andy Wingo <[EMAIL PROTECTED]>
#
# * guile/g-wrap/guile/ws/standard.scm (destroy-value-cg): A
# non-inlined non-null caller-owned string always comes from an
# argument, which is copied from its scheme values. So while from
# the perspective of the code that we call, it is a const char*, we
# will need to free it at the end. Cast so no warning is emitted.
# This is a bit of a hack; the other solution would be to have
# everything be a char*. Better to keep the compiler warnings.
#
# committer: Andy Wingo <[EMAIL PROTECTED]>
# date: Fri 2006-09-01 18:30:31.355094910 +0200
=== modified file guile/g-wrap/guile/ws/standard.scm
--- guile/g-wrap/guile/ws/standard.scm
+++ guile/g-wrap/guile/ws/standard.scm
@@ -402,7 +402,7 @@
"by `scm_to_locale_string ()' \n"
" in `unwrap-value'. */\n"
"if ("(var value)" != NULL)\n"
- " free ("(var value)");\n"
+ " free ((char*)"(var value)");\n"
"}\n")
'())
'()))
# revision id: [EMAIL PROTECTED]
# sha1: bd02efeb3f923c94c4e1c25f1717a4ea93d8fd89
# inventory sha1: 8fc8b2beb73e917663ef14b1047823b2b1b692d4
# parent ids:
# [EMAIL PROTECTED]
# base id: [EMAIL PROTECTED]
# properties:
# branch-nick: wingo
_______________________________________________
g-wrap-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/g-wrap-dev