[Ecls-list] Commenting: ((cl_object)(cl_symbols+%d))
Juan Jose Garcia Ripoll
lisp at arrakis.es
Thu Mar 2 03:12:06 UTC 2006
On Wed, 2006-03-01 at 18:22 -0800, Douglas R. Miles wrote:
> I had an idea that makes the emitted C easier for me to read/hack after
> compiler creates it
> In my local config.h I define
> #ifndef THE_SYM
> #define THE_SYM(NNN,VVV) ((cl_object)(cl_symbols+VVV))
> // This macro ignores the first argument
> #endif [...]
> It makes the code emitted read like:
> ECL_SET(THE_SYM("*PACKAGE*",41), cl_core.lisp_package);
> But what the compiler will see is
> ecl_set_symbol(((cl_object)(cl_symbols+41)), cl_core.lisp_package)
Cool idea. Would you mind if I implement something similar in ECL?
Regards,
Juanjo
More information about the ecl-devel
mailing list