dev-serveez
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dev-serveez] [PATCH] guile 1.8.x scm_makfromstr takes 3 args


From: Mike Gran
Subject: [dev-serveez] [PATCH] guile 1.8.x scm_makfromstr takes 3 args
Date: Fri, 27 May 2011 19:04:20 -0700 (PDT)

Hi-

With Guile 1.8.x, the compilation of serveez 'next' head fails due to
a missing parameter.

In Guile 1.8, scm_makfromstr takes 3 args.  The 3rd arg is a dummy arg.

It could be fixed like in the following patch.


diff --git a/src/gi.c b/src/gi.c
index d2b5501..e14a0c4 100644
--- a/src/gi.c
+++ b/src/gi.c
@@ -99,6 +99,9 @@ gi_gc_unprotect (SCM obj)
 #if V19
 #define mem2scm(len,ptr)  scm_from_locale_stringn (ptr, len)
 #define mem02scm(ptr)     scm_from_locale_string (ptr)
+#elif V17
+#define mem2scm(len,ptr)  scm_makfromstr (ptr, len, 0)
+#define mem02scm(ptr)     scm_makfrom0str (ptr)
 #elif V15
 #define mem2scm(len,ptr)  scm_makfromstr (ptr, len)
 #define mem02scm(ptr)     scm_makfrom0str (ptr)


Thanks,

Mike Gran




reply via email to

[Prev in Thread] Current Thread [Next in Thread]