RE: DLL Automatic Wrapper Generator
- Posted by Andy Serpa <renegade at earthling.net> Mar 01, 2002
- 481 views
bensler at mail.com wrote: > I've updated DAWG to handle object arguments for string parameters. > I also fixed a couple little bugs I discovered when I did a detailed > test. > ALMOST perfect. But what I had in mind would be skip the "free" step also if you pass it an atom for a string argument. In other words, the function should only free() it if the function allocate_string()'s it -- in my mind the whole reason you would be passing a pointer instead of the actual string was if you had pre-allocated it, and wanted it to stay allocated after the function call, otherwise you would just pass the string directly. See what I mean? But good work -- I will definitely find this useful. I will vote for it when you put it in the archive...