RE: DLL Automatic Wrapper Generator

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

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...

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

Search



Quick Links

User menu

Not signed in.

Misc Menu