On 03/26/2011 02:12 AM, Mehul Sanghvi wrote:
OK so once I modify kernel/CFuncs.st and I believe I need to also
modify libgst/cint.c what else do I need to do in order to get this to work ?
In kernel/CFuncs.st
environ: aString [
<category: 'c call-outs'>
<cCall: 'environ' returning: #(#ptr #string) args: #()>
]
Where did you add this?
and in libgst/cint.c
_gst_define_cfunc ("getenv", getenv);
_gst_define_cfunc ("environ", environ);
You should do
static char **get_environ(void)
{
return environ;
}
...
_gst_define_cfunc ("get_environ", get_environ);
Paolo
_______________________________________________
help-smalltalk mailing list
help-smalltalk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk