mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +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
|
@ -188,7 +188,7 @@ stack_depth (scm_debug_frame *dframe,long offset,SCM *id,int *maxp)
|
|||
static void
|
||||
read_frame (scm_debug_frame *dframe,long offset,scm_info_frame *iframe)
|
||||
{
|
||||
SCM flags = SCM_INUM0;
|
||||
SCMWORD flags = SCM_ASWORD (SCM_INUM0); /* UGh. */
|
||||
int size;
|
||||
scm_debug_info *info;
|
||||
if (SCM_EVALFRAMEP (*dframe))
|
||||
|
@ -291,7 +291,7 @@ read_frames (scm_debug_frame *dframe,long offset,int n,scm_info_frame *iframes)
|
|||
&& !SCM_UNBNDP (info[1].a.proc))
|
||||
{
|
||||
NEXT_FRAME (iframe, n, quit);
|
||||
iframe->flags = SCM_INUM0 | SCM_FRAMEF_PROC;
|
||||
iframe->flags = SCM_ASWORD(SCM_INUM0) | SCM_FRAMEF_PROC;
|
||||
iframe->proc = info[1].a.proc;
|
||||
iframe->args = info[1].a.args;
|
||||
}
|
||||
|
@ -303,12 +303,12 @@ read_frames (scm_debug_frame *dframe,long offset,int n,scm_info_frame *iframes)
|
|||
{
|
||||
if (!SCM_UNBNDP (info[1].a.proc))
|
||||
{
|
||||
iframe->flags = SCM_INUM0 | SCM_FRAMEF_PROC;
|
||||
iframe->flags = SCM_ASWORD(SCM_INUM0) | SCM_FRAMEF_PROC;
|
||||
iframe->proc = info[1].a.proc;
|
||||
iframe->args = info[1].a.args;
|
||||
}
|
||||
else
|
||||
iframe->flags = SCM_INUM0;
|
||||
iframe->flags = SCM_ASWORD (SCM_INUM0);
|
||||
iframe->source = scm_make_memoized (info[0].e.exp,
|
||||
info[0].e.env);
|
||||
info -= 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue