<div>The problem with your code ...<br></div><div><br></div>cl_object ecl_eval(char* code) {<br>cl_object obj = c_string_to_object(code);<br>return si_safe_eval(3, obj, Cnil, g_evalErrorSymbol);<br>}<br><div><br></div><div>
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.<br>
</div><div><br></div><div>Juanjo</div><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>