mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-03 07:51:35 -08:00
Various minor fixes, and an important set of changes to teach the compiler
and the interpreter to understand (SETF fname) function names, and to handle them without creating auxiliary symbols.
This commit is contained in:
parent
057ff71e6a
commit
c2aa136143
51 changed files with 1334 additions and 1194 deletions
|
|
@ -182,3 +182,16 @@ si_sl_makunbound(cl_object x, cl_object index)
|
|||
x->instance.slots[i] = OBJNULL;
|
||||
@(return x)
|
||||
}
|
||||
|
||||
cl_object
|
||||
ecl_copy_instance(cl_object x)
|
||||
{
|
||||
cl_object y;
|
||||
|
||||
if (type_of(x) != t_instance)
|
||||
FEwrong_type_argument(@'instance', x);
|
||||
y = ecl_allocate_instance(x->instance.clas, x->instance.length);
|
||||
memcpy(y->instance.slots, x->instance.slots,
|
||||
x->instance.length * sizeof(cl_object));
|
||||
@(return y)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue