tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.02k stars 48 forks source link

Autowrap #170

Closed porky11 closed 7 years ago

porky11 commented 7 years ago

if you specify a name to dale-autowrap.pl (the filename without extension), it will only handle everything defined in that file also added an example usage in the same directory (c2dale.sh) usage:

$ export INCLUDE_PATH=/usr/include/GL #the directory where the included files are
$ ./c2dale.sh gl glut freeglut freeglut_std freeglut_ext #etc.

(includes still have to specified oneself, it may be possible to add support to this to the perl-program by not just "next;" when wrong filename but also adding (include "wrong-filename.dt") (problem: everything has to included only once, even if in different files / other problem: some files should not be included anyway (like c's stdlib.h or similar)

porky11 commented 7 years ago

i do all updates on autowrap here instead of in single pull requests, if you don't like an addition, you can cherry-pick, I think.

tomhrr commented 7 years ago

Thanks, this has been merged.