On Sat, Dec 20, 2008 at 4:04 PM, Alejandro Forero Cuervo
a...@freaks-unidos.net wrote:
Please try attached patch. I have added it to trunk and the chicken-3
branch, and did some tests, but testing finalization is always somewhat
difficult.
I tried the patch (on 3.4.0) and it did not work.
Please try this one.
cheers
felix
Index: runtime.c
===
--- runtime.c (revision 12851)
+++ runtime.c (working copy)
@@ -2706,6 +2706,10 @@
for(gcrp = gc_root_list; gcrp != NULL; gcrp = gcrp-next)
mark(gcrp-value);
+
Hi again,
Can anyone explain to me how I convert a string to a null terminated
c-pointer that points to a list of strings.
For example the c function I need to use looks like:
foo (char **str, int cnt, c-struct result)
In other words I'm passing a list of cnt strings into the function
Jim Ursetto scripsit:
The `sx` egg does something similar -- transforming a list of strings
into a null-terminated array of C strings. I derived a quick example
from it and attached the code.
BTW, there is a bug in this code: if it's passed an improper list, it
goes off into hyperspace.