[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] (long) DLD help / SDL bindings for GNU Smalltalk

From: Paolo Bonzini
Subject: Re: [Help-smalltalk] (long) DLD help / SDL bindings for GNU Smalltalk
Date: Fri, 27 Apr 2001 20:38:22 +0200

> Initially, I was intending to use:
> DLD linkFile:
> DLD library: getFunc
> DLD defineCFunc: as:
> and then create a CSDL class with a large number of
> !CSDL class defineCFunc: 'foo' ...

That's right.

> This worked well up to the point that I needed to
> examine the innards of some struct *s returned by SDL.
>  As far as I can see, I need to go back into C to pull
> apart the structs.  Given some structure:

No, you can use CStruct.  Check out kernel/
for examples.

> BTW, I note there is some discussion about interface
> generators on this list vis-a-vis GTK, but I haven't
> seen anything conclusive.

The scripts are ready, but are not in any published version.
As soon as I finish working on preemptive I/O I will make an
alpha release.  Also, they don't help with structs since
(because of information hiding) gtk provides functions
like those you wanted to write.

> I guess that we'd
> eventually want any 'official' generic generator to be
> written in gst.

Or it could be an extension of SWIG.

>  I looked (briefly) at doing something
> with the regex example, but ran away screaming when I
> saw it was going to be subject to fits of change.

It will also be complete in the alpha.


ps: what is this SDL thing?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]