On Sun, Mar 27, 2011 at 05:03, Paolo Bonzini <[email protected]> wrote:
>> +    environ: aString [
>
> This should be just "environ [".
>
> The method wasn't found because you were defining it with the wrong name.
>
> Paolo
>
>> +       <category: 'c call-outs'>
>> +       <cCall: 'environ' returning: #(#ptr #string) args: #()>
>> +
>> +    ]
>


I made that change, recompiled, and I get the following:

% gst
GNU Smalltalk ready

st> Smalltalk getenv: 'SHELL'
'/bin/bash'
st> Smalltalk environ
CPtr(16rBFFFF6BC)
st> Smalltalk environ:
st>


I am guessing some sort of pointer issue either in cint.c or CFuncs.st ?


-- 
Mehul N. Sanghvi
email: [email protected]

_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to