On Tue, Jul 09, 2013 at 01:26:12PM +1200, Stephen Woolerton wrote:
> Hi everyone,

Good Morning,

> I've been writing a tutorial on C Callouts from GNU Smalltalk, and am
> trying to get a couple of C callout scenarios to work. I'm having
> difficulty when there is an argument in the callout, which is a
> pointer.


ah great. My memory on C Callouts is fading (I started with creating
bindings for the Osmocore libraries but then stopped and had more
important things).

> struct       Note {
>    int         id;
>    char*       memo;     //variable length
>    long        modified; //timestamp
> };
> extern struct Note* newBlankNote(unsigned int *resultCode);
> extern unsigned int initializeNote(struct Note *note);


>   CNote class >> newBlankNote: retVal [
>      <cCall: 'newBlankNote' returning: #{CNote} args: #(#{CObject})>

OKay, so you would like to have something like a intOut.. or does
CInt help here? Sorry, I am guessing. Or something like #selfSmallalk?


sorry for not being of more help right now
        holger

_______________________________________________
help-smalltalk mailing list
help-smalltalk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to