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

Rob Withers reefedjib at yahoo.com
Sun Jul 25 16:48:55 UTC 2010


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?

Thanks,
Rob 



More information about the Vm-dev mailing list