mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 17:50:29 +02:00
* smob.h (SCM_SMOB_DATA_2, SCM_SMOB_DATA_3, SCM_SMOB_FLAGS,
SCM_SET_SMOB_DATA_2, SCM_SET_SMOB_DATA_3, SCM_SET_SMOB_FLAGS, SCM_SMOB_OBJECT, SCM_SMOB_OBJECT_2, SCM_SMOB_OBJECT_3, SCM_SET_SMOB_OBJECT, SCM_SET_SMOB_OBJECT_2, SCM_SET_SMOB_OBJECT_3, SCM_SMOB_OBJECT_LOC, SCM_SMOB_OBJECT_2_LOC, SCM_SMOB_OBJECT_3_LOC): New. * smob.c (scm_i_set_smob_flags): New function.
This commit is contained in:
parent
33c527ec83
commit
37fc18ae73
2 changed files with 27 additions and 0 deletions
|
@ -47,6 +47,14 @@
|
|||
long scm_numsmob;
|
||||
scm_smob_descriptor scm_smobs[MAX_SMOB_COUNT];
|
||||
|
||||
/* Lower 16 bit of data must be zero.
|
||||
*/
|
||||
void
|
||||
scm_i_set_smob_flags (SCM x, scm_t_bits data)
|
||||
{
|
||||
SCM_SET_CELL_WORD_0 (x, (SCM_CELL_WORD_0 (x) & 0xFFFF) | data);
|
||||
}
|
||||
|
||||
/* {Mark}
|
||||
*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue