On each of the following sections we will document the standard interface for building objects of different types. For some objects, though, it is too difficult to make a C interface that resembles all of the functionality in the lisp environment. In those cases you need to
build the objects from their textual representation, or
use the evaluator to build these objects.
The first way makes use of a C or Lisp string to construct an object. The two functions you need to know are the following ones.
c_string_to_objectbuilds a lisp object from a C string which contains a suitable representation of a lisp object.
string_to_objectperforms the same task, but uses a lisp string, and therefore it is less useful. Two examples of their use/* Using a C string */ cl_object array1 = c_string_to_object("#(1 2 3 4)"); /* Using a Lisp string */ cl_object string = make_simple_string("#(1 2 3 4)"); cl_object array2 = string_to_object(string);