mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 20:30:28 +02:00
*.[ch]: make a distinction between SCM as a generic
name for a Scheme object (now a void*), and SCM as 32 bit word for storing tags and immediates (now a long int). Introduced SCM_ASWORD and SCM_ASSCM for conversion. Fixed various dubious code in the process: arbiter.c (use macros), unif.c (scm_array_p),
This commit is contained in:
parent
df8bb2dc39
commit
c209c88e54
53 changed files with 1371 additions and 1361 deletions
|
@ -275,7 +275,7 @@ SCM_DEFINE (scm_gloc_p, "gloc?", 1, 0, 0,
|
|||
#define FUNC_NAME s_scm_gloc_p
|
||||
{
|
||||
return SCM_BOOL((SCM_MEMOIZEDP (obj)
|
||||
&& (SCM_MEMOIZED_EXP (obj) & 7) == 1));
|
||||
&& (SCM_ASWORD(SCM_MEMOIZED_EXP (obj)) & 7) == 1));
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
|
@ -559,7 +559,7 @@ static int
|
|||
prindebugobj (SCM obj,SCM port,scm_print_state *pstate)
|
||||
{
|
||||
scm_puts ("#<debug-object ", port);
|
||||
scm_intprint (SCM_DEBUGOBJ_FRAME (obj), 16, port);
|
||||
scm_intprint ((int) SCM_DEBUGOBJ_FRAME (obj), 16, port);
|
||||
scm_putc ('>', port);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue