Constructors — Creating and extracting characters from Lisp objects

Functions and macros

cl_object ECL_CODE_CHAR( ecl_character code);

ecl_character ECL_CHAR_CODE( cl_object o);

cl_object ecl_char_code( ecl_character code);

ecl_base_char ecl_base_char_code( cl_object o);


These functions and macros convert back and forth from C character types to Lisp. The macros ECL_CHAR_CODE and ECL_CODE_CHAR perform this coercion without checking the arguments. The functions ecl_char_code and ecl_base_char_code, on the other hand, verify that the argument has the right type and signal an error otherwise.