mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
* eval.h (SCM_MAKE_ILOC): New macro.
* debug.c (scm_make_iloc): Use SCM_MAKE_ILOC instead of computing the iloc bitpattern here.
This commit is contained in:
parent
c55bcb3297
commit
a8a19efc2b
3 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
2002-11-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||
|
||||
* eval.h (SCM_MAKE_ILOC): New macro.
|
||||
|
||||
* debug.c (scm_make_iloc): Use SCM_MAKE_ILOC instead of computing
|
||||
the iloc bitpattern here.
|
||||
|
||||
2002-11-14 Mikael Djurfeldt <mdj@linnaeus>
|
||||
|
||||
* coop-pthreads.c, coop-pthreads.h: scm_internal_select should be
|
||||
|
|
|
@ -245,10 +245,7 @@ SCM_DEFINE (scm_make_iloc, "make-iloc", 3, 0, 0,
|
|||
{
|
||||
SCM_VALIDATE_INUM (1, frame);
|
||||
SCM_VALIDATE_INUM (2, binding);
|
||||
return SCM_PACK (SCM_UNPACK (SCM_ILOC00)
|
||||
+ SCM_IFRINC * SCM_INUM (frame)
|
||||
+ (!SCM_FALSEP (cdrp) ? SCM_ICDR : 0)
|
||||
+ SCM_IDINC * SCM_INUM (binding));
|
||||
SCM_MAKE_ILOC (SCM_INUM (frame), SCM_INUM (binding), !SCM_FALSEP (cdrp));
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
|
|
|
@ -92,6 +92,12 @@ SCM_API SCM scm_eval_options_interface (SCM setting);
|
|||
& (SCM_UNPACK (n) >> 8))
|
||||
#define SCM_IDIST(n) (SCM_UNPACK (n) >> 20)
|
||||
#define SCM_ICDRP(n) (SCM_ICDR & SCM_UNPACK (n))
|
||||
#define SCM_MAKE_ILOC(frame_nr, binding_nr, last_p) \
|
||||
SCM_PACK ( \
|
||||
((frame_nr) << 8) \
|
||||
+ ((binding_nr) << 20) \
|
||||
+ ((last_p) ? SCM_ICDR : 0) \
|
||||
+ scm_tc8_iloc )
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue