[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] C Callouts issue
From: |
Holger Hans Peter Freyther |
Subject: |
Re: [Help-smalltalk] C Callouts issue |
Date: |
Tue, 9 Jul 2013 10:19:12 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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