Croquet on mac os-9
Andreas.Raab at gmx.de
Andreas.Raab at gmx.de
Sun Nov 17 23:27:29 UTC 2002
> On Sun, 17 Nov 2002 21:59:56 +0100 (MET) Andreas.Raab at gmx.de wrote:
> >Hey, what'cha think about helping me a bit to generate plugin stubs
> >automatically from ffi specs?!
>
> Stubs? Don't you mean _real_ code for a plugin to bypass FFI? Or am I
> missing the point?
No, you're absolutely right - what I'm thinking about is something like
taking
<apicall: void 'frobler' (ulong) module: 'foobar'>
and translate it to
FooBarPlugin>>primitiveFrobler
| arg1 |
arg1 := interpreterProxy positive32BitValueOf: (interpreterProxy
stackValue: 0).
self cCode: 'frobler(arg1)'.
interpreterProxy pop: 1.
> IOW: is what you need like
>
> FloatArrayPlugin>>primitiveDivFloatArray
>
> or like
>
> FloatArray>>primDivArray:
Both, of course ;-)
Cheers,
- Andreas
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
More information about the Squeak-dev
mailing list
|