FFI and apicall/cdecl type
mathieu
mathk.sue at gmail.com
Tue Jul 18 22:34:24 UTC 2006
Hi,
I was wondering how the type was handle when apicall or cdecl occur.
I have read how it is parse by the compiler and don't understand the
following:
======================================
Parser>>externalType: descriptorClass
"Parse an return an external type"
| xType |
xType _ descriptorClass atomicTypeNamed: here.
xType == nil ifTrue:["Look up from class scope"
*here* Symbol hasInterned: here ifTrue:[:sym|
*here* xType _ descriptorClass structTypeNamed: sym]].
xType == nil ifTrue:[
"Raise an error if user is there"
*here* self interactive ifTrue:[^nil].
"otherwise go over it silently"
*here* xType _ descriptorClass forceTypeNamed: here].
self advance.
(self matchToken:#*)
ifTrue:[^xType asPointerType]
ifFalse:[^xType]
=============================================
So if somebody can explain it to me thanks :)
Math
More information about the Squeak-dev
mailing list
|