mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
add SCM_HEAP_OBJECT_BASE
* libguile/tags.h (SCM_HEAP_OBJECT_BASE): New macro. Given a SCM, returns a pointer to the start of its memory area on the heap. * libguile/bytevectors.c: * libguile/fluids.c: * libguile/foreign.c: * libguile/gc.h: * libguile/guardians.c: * libguile/numbers.h: * libguile/ports.c: * libguile/smob.c: * libguile/struct.c: * libguile/weak-set.c: * libguile/weak-table.c: * libguile/weak-vector.c: Use it.
This commit is contained in:
parent
8c5bb72920
commit
47ed8656db
14 changed files with 41 additions and 25 deletions
|
@ -103,7 +103,7 @@ SCM_DEFINE (scm_make_syntax_transformer, "make-syntax-transformer", 3, 0, 0,
|
|||
SCM_VALIDATE_SYMBOL (2, type);
|
||||
|
||||
z = scm_words (scm_tc16_macro, 5);
|
||||
SCM_SET_SMOB_DATA_N (z, 1, prim);
|
||||
SCM_SET_SMOB_DATA_N (z, 1, (scm_t_bits)prim);
|
||||
SCM_SET_SMOB_OBJECT_N (z, 2, name);
|
||||
SCM_SET_SMOB_OBJECT_N (z, 3, type);
|
||||
SCM_SET_SMOB_OBJECT_N (z, 4, binding);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue