mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-22 20:42:03 -08:00
bytecmp: be smart wrt bytecompiled code
bytecompiled functions may not have a name (i.e lambda assigned to smothing). Recognize that fact, so when we read back such functions from file we can call bc-compile on them. Fixes #313.
This commit is contained in:
parent
b851e85701
commit
9ba7440782
1 changed files with 2 additions and 2 deletions
|
|
@ -130,9 +130,9 @@ cl_function_lambda_expression(cl_object fun)
|
|||
case t_bytecodes:
|
||||
name = fun->bytecodes.name;
|
||||
output = fun->bytecodes.definition;
|
||||
if (name == ECL_NIL)
|
||||
if (name == ECL_NIL && output != ECL_NIL)
|
||||
output = cl_cons(@'lambda', output);
|
||||
else if (name != @'si::bytecodes')
|
||||
else if (name != @'si::bytecodes' && output != ECL_NIL)
|
||||
output = @list*(3, @'ext::lambda-block', name, output);
|
||||
break;
|
||||
case t_cfun:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue