RE: DLL Automatic Wrapper Generator
- Posted by bensler at mail.com Mar 01, 2002
- 478 views
I noticed that just after posting last time. It's already fixed. This is the line generated now. if sequence(argX) then free(tmpX) end if Chris Andy Serpa wrote: > > 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... > >