Automatic Decls Creation
Blitz3D Forums/Blitz3D Userlibs/Automatic Decls Creation
Hello! I am finishing my new raknet wrapper and i wonder if any managed to create an automatic decls file creation so i pass the .cpp with the functions and returns the decls file.
I can make one, but it should be great if i can save that time ...
Thanks...
What a fantastic idea!! Why didn't I think of that!?!? :P
I'm not sure if this would do it, but it's worth a look...
http://www.blitzmax.com/Community/posts.php?topic=49981
I have implemented a program to do it. I have used flex (a lexical analyzer i used in the university long time ago).
It is a very great tool. I cannot post here my software because it is adapted to the raknet dll, but i must say it has done a very good job for me!
Awww.
I'd buy it.... :-)
Well i have not too much time now, but if i can find some time i will make an application to do the job.
I think i will release it for free (not hard work like kode...)
:)
Haha, I think we love you for it.
What would be impresive is one that takes .dll input and searches for parameters and function names. That would be the most useful tool around. I don't know enough about .dll file construction to really know if it's possible, let alone actualy make it so it's just an awesome floating idea.
i think that this cannot be done due to the possibility to pass infinite argument to a function in c++, so the size of the parameters can be variable...
not sure anyway!
@PCD GUY:
That would be possibile, names of functions on DLLs are simply ASCII strings. Besides if a compiler made so called "decorations" on them (something like: MyFunction@12) would be possible to know something about the number of arguments (but not names of arguments that can be useful) , though I guess there could be some problems on trying to understand when you pass a LONG, a WORD or a BYTE (ok, in Blitz we don't worry).