Is there a SWIG module for Squeak?
Stephen Pair
spair at advantive.com
Fri Sep 7 20:52:33 UTC 2001
Isn't apicall: just the PASCAL calling convention? I remember when MS
changed all of the code from the C calling convention to the PASCAL
calling convention...I think it shrunk the code size by a pretty
significant amount. Or maybe it was a performance benefit...can't
recall.
It doesn't seem that apicall: should necessarily be tied to any specific
OS however (even though other OSes might not make any use of it). It
should be possible to make libraries on non-Windows (and Mac) OSes that
use apicall: no? Similarly, you can (and frequently do) make libraries
that are cdecl: on Windows.
- Stephen
> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On
> Behalf Of Andreas Raab
> Sent: Friday, September 07, 2001 3:25 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: RE: Is there a SWIG module for Squeak?
>
>
> <apicall:> is in fact platform specific - but you don't have
> to use it.
>
> Cheers,
> - Andreas
>
> > -----Original Message-----
> > From: squeak-dev-admin at lists.squeakfoundation.org
> > [mailto:squeak-dev-admin at lists.squeakfoundation.org]On Behalf
> > Of Douglas Brebner
> > Sent: Friday, September 07, 2001 10:17 AM
> > To: squeak-dev at lists.squeakfoundation.org
> > Subject: Re: Is there a SWIG module for Squeak?
> >
> >
> > On Friday 07 September 2001 04:15, you wrote:
> > > Douglas,
> > >
> > > > FFI isn't cross platform either which makes for more
> work wrapping
> > > > it.
> > >
> > > What exactly do you mean this?! The FFI is perfectly
> > cross-platform as long
> > > as some naming conventions are kept. And that's true for
> pluggable
> > > primitives as well. E.g., if you name some plugin "foo" on
> > one platform and
> > > "bar" on another one you shouldn't expect things to work
> > that smoothly ;-)
> >
> > I was referring to the way that the unix FFI calls use
> > <cdecl:module:> while
> > the mac and windows calls use <apicall:module:>. I thought
> > this meant that
> > cross platform modules would need to know what platform
> > they're running on to
> > select the right call type. Sorry if I misinterpreted it, I'm
> > not very
> > familiar with how the FFI works.
> >
> > --
> > Douglas
> >
> >
>
>
More information about the Squeak-dev
mailing list
|