Search the web
Sign In
New User? Sign Up
iolanguage · Io
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Some issues with addon writing   Message List  
Reply | Forward Message #11003 of 11910 |
Hello!

I have done some work on the CFFI addon (ported it to CInvoke and
implemented basic C structure passing) . Now I want to change its API a
bit to implement new features (like better Io callbacks, ...); so I
copied the whole addon into a new addon directory called "CInvoke" and
replaced every 'CFFI' with 'CInvoke'. It compiles without errors.
But if I run the samples (which worked with my old 'extended' CFFI), I
now get:

IoState_registerProtoWithFunc_() Error: attempt to add the same
proto twice

I could figure out that IoCInvokeLibrary_proto is called twice, but I
don't know why.
Could anybody give me a hint?
The current code is located here:
http://github.com/fredreichbier/io-cinvoke/tree/master
The code before the renaming is located here:
http://github.com/fredreichbier/io/tree/master/addons/CFFI
To try it out, install C/Invoke (http://www.nongnu.org/cinvoke/), clone
the git repo and place the contents in ./addons/CInvoke.

Greetings,

Friedrich



Sat Oct 11, 2008 4:31 pm

frw@...
Send Email Send Email

Forward
Message #11003 of 11910 |
Expand Messages Author Sort by Date

Hello! I have done some work on the CFFI addon (ported it to CInvoke and implemented basic C structure passing) . Now I want to change its API a bit to...
Friedrich Weber
frw@...
Send Email
Oct 12, 2008
7:31 pm

... I'd suggest breaking on IoState_registerProtoWithFunc_ and finding the two times your proto gets registered and removing the extra....
Steve Dekorte
stevedekorte
Offline Send Email
Oct 12, 2008
9:08 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help