Re: Wrappers

new topic     » topic index » view thread      » older message » newer message

I've thought about writing such a program myself. I have even written a very
simple program that converts all #define:s to euphoria code, wich I used
when converting the GL headers to euphoria.
A really nice, and time-saving, feature would've been automatic
function-linking (extern type name(type name)  becomes

I figured one can do typedef-struct convertions like this:

typedef struct tagName
{
char a;
short b;
unsigned int c;
}Name;

..becomes:

--struct tagName
--{
   a = 0
   b = 1
   c = 3
   SIZE_OF_Name = 7
--}

Ofcourse there's the problem of two or more structures having identical
names for some member. Maybe that could be solved by using some sort of
prefixing (?).



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu