[Vm-dev] Cog changes to variable declarations in Plugins

Eliot Miranda eliot.miranda at gmail.com
Mon Jul 26 17:57:43 UTC 2010


On Sun, Jul 25, 2010 at 9:48 AM, Rob Withers <reefedjib at yahoo.com> wrote:

>
> Eliot,
>
> I am working with OSProcessPlugin.  It has not yet been ported to Cog.
> Under Cygwin, I was able to generate the plugin and compile it.  I am
> confused about how I was able to generate it.  The Win32OSProcessPlugin
> class has methods which state things like:
>
>        self var: 'result' type: 'BOOL'.
>        self var: 'h' declareC: 'static HANDLE h= 0'.
>
> I thought this had changed in Cog and we needed to use:
>
>        <var: 'result' type: 'BOOL'>
>        <var: 'h' declareC: 'static HANDLE h= 0'>
>
> as well as:
>
>        <returnTypeC: 'unsigned char *'>
>        <export: true>
>        <static: false>
>
> and so on.
>
> Do these changes need to be made to make OSProcessPlugin work correctly?
>

No, they don't have to be made.  The Cog VMMaker supports both the old and
the new style declarations.

cheers
Eliot


>
> Thanks,
> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20100726/bce64a16/attachment.htm


More information about the Vm-dev mailing list