1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-12 06:41:13 +02:00

* stacks.c: fix various preprocessor usages of new public

symbols to expect 0 or 1 values rather than 1 or undefined.
i.e. change #ifdef to #if, etc.
This commit is contained in:
Rob Browning 2003-03-27 20:10:02 +00:00
parent 6c4eb8e12e
commit a1fa649f02

View file

@ -464,7 +464,7 @@ SCM_DEFINE (scm_make_stack, "make-stack", 1, 0, 1,
{ {
offset = ((SCM_STACKITEM *) ((char *) SCM_CONTREGS (obj) + sizeof (scm_t_contregs)) offset = ((SCM_STACKITEM *) ((char *) SCM_CONTREGS (obj) + sizeof (scm_t_contregs))
- SCM_BASE (obj)); - SCM_BASE (obj));
#ifndef SCM_STACK_GROWS_UP #if SCM_STACK_GROWS_UP
offset += SCM_CONTINUATION_LENGTH (obj); offset += SCM_CONTINUATION_LENGTH (obj);
#endif #endif
dframe = RELOC_FRAME (SCM_DFRAME (obj), offset); dframe = RELOC_FRAME (SCM_DFRAME (obj), offset);
@ -548,7 +548,7 @@ SCM_DEFINE (scm_stack_id, "stack-id", 1, 0, 0,
{ {
offset = ((SCM_STACKITEM *) ((char *) SCM_CONTREGS (stack) + sizeof (scm_t_contregs)) offset = ((SCM_STACKITEM *) ((char *) SCM_CONTREGS (stack) + sizeof (scm_t_contregs))
- SCM_BASE (stack)); - SCM_BASE (stack));
#ifndef SCM_STACK_GROWS_UP #if SCM_STACK_GROWS_UP
offset += SCM_CONTINUATION_LENGTH (stack); offset += SCM_CONTINUATION_LENGTH (stack);
#endif #endif
dframe = RELOC_FRAME (SCM_DFRAME (stack), offset); dframe = RELOC_FRAME (SCM_DFRAME (stack), offset);
@ -627,7 +627,7 @@ SCM_DEFINE (scm_last_stack_frame, "last-stack-frame", 1, 0, 0,
{ {
offset = ((SCM_STACKITEM *) ((char *) SCM_CONTREGS (obj) + sizeof (scm_t_contregs)) offset = ((SCM_STACKITEM *) ((char *) SCM_CONTREGS (obj) + sizeof (scm_t_contregs))
- SCM_BASE (obj)); - SCM_BASE (obj));
#ifndef SCM_STACK_GROWS_UP #if SCM_STACK_GROWS_UP
offset += SCM_CONTINUATION_LENGTH (obj); offset += SCM_CONTINUATION_LENGTH (obj);
#endif #endif
dframe = RELOC_FRAME (SCM_DFRAME (obj), offset); dframe = RELOC_FRAME (SCM_DFRAME (obj), offset);