[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Re: C Callbacks
From: |
Paolo Bonzini |
Subject: |
[Help-smalltalk] Re: C Callbacks |
Date: |
Tue, 20 May 2008 13:56:06 +0200 |
User-agent: |
Thunderbird 2.0.0.14 (Macintosh/20080421) |
Maybe I can reuse the existing parameter stuff around
#cCall: for inbound calls.
If you want to warm up with that code, you might start converting this
part of it to Smalltalk:
desc->returnType = classify_type_symbol (returnTypeOOP, true);
if (desc->returnType == _gst_nil_oop)
goto error;
for (i = 1; i <= numArgs; i++)
{
OOP type;
type = desc->argTypes[i - 1] =
classify_type_symbol (ARRAY_AT (argsOOP, i), false);
if (type == _gst_nil_oop)
goto error;
}
... together with symbol_type_map, type_map, classify_type_symbol.
Paolo