mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 17:20:29 +02:00
* struct.c (scm_make_struct): Allocate one word more for
entities and initialize the new slot.
This commit is contained in:
parent
64c4580bd8
commit
25c9482661
1 changed files with 2 additions and 1 deletions
|
@ -358,12 +358,13 @@ scm_make_struct (vtable, tail_array_size, init)
|
||||||
if (SCM_STRUCT_DATA (vtable)[scm_struct_i_flags] & SCM_STRUCTF_ENTITY)
|
if (SCM_STRUCT_DATA (vtable)[scm_struct_i_flags] & SCM_STRUCTF_ENTITY)
|
||||||
{
|
{
|
||||||
data = scm_alloc_struct (basic_size + tail_elts,
|
data = scm_alloc_struct (basic_size + tail_elts,
|
||||||
scm_struct_n_extra_words + 4,
|
scm_struct_n_extra_words + 5,
|
||||||
"make-struct");
|
"make-struct");
|
||||||
data[scm_struct_i_proc + 0] = SCM_BOOL_F;
|
data[scm_struct_i_proc + 0] = SCM_BOOL_F;
|
||||||
data[scm_struct_i_proc + 1] = SCM_BOOL_F;
|
data[scm_struct_i_proc + 1] = SCM_BOOL_F;
|
||||||
data[scm_struct_i_proc + 2] = SCM_BOOL_F;
|
data[scm_struct_i_proc + 2] = SCM_BOOL_F;
|
||||||
data[scm_struct_i_proc + 3] = SCM_BOOL_F;
|
data[scm_struct_i_proc + 3] = SCM_BOOL_F;
|
||||||
|
data[scm_struct_i_setter] = SCM_BOOL_F;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
data = scm_alloc_struct (basic_size + tail_elts,
|
data = scm_alloc_struct (basic_size + tail_elts,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue