The problem with your code ...
cl_object ecl_eval(char* code) {
cl_object obj = c_string_to_object(code);
return si_safe_eval(3, obj, Cnil, g_evalErrorSymbol);
}
is that it relies on c_string_to_object() which will only read the FIRST
object it finds in the string, ignoring the remaining part of the string.
One quick hack would be to surround the string with parenthesis and the
evaluating the forms in the resulting list, one after another.
Juanjo
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Ecls-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecls-list