[Ecls-list] Documentation wrong/outdated?

Peter Enerccio enerccio at gmail.com
Thu Jan 31 23:17:13 UTC 2013


I ran into problem with documentation.

http://ecls.sourceforge.net/new-manual/re41.html
this page specifies that ecl_make_simple_base_string will copy the data
supplied to it.
However, if this code is executed:

cl_object ret = ecl_make_simple_base_string(data, -1);
free(data);
return ret;

the resulting cl base string will be garbled.
the cl_object.base_string.self.bc and b8 points to the same pointer as data
was.

-- 
Bc. Peter Vaňušanik
http://www.bishojo.tk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20130201/1db79d9c/attachment.html>


More information about the ecl-devel mailing list