mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Refactor to frames code
* libguile/frames.h: * libguile/frames.c (scm_c_frame_previous): New internal helper. (scm_frame_previous): Use the helper. (RELOC): Take kind and low-level frame args separately. Adapt callers. (frame_stack_base, frame_offset): New helpers. (scm_i_frame_offset, scm_i_frame_stack_base): Use low-level helpers.
This commit is contained in:
parent
2ad91e6b34
commit
44d9705464
2 changed files with 79 additions and 52 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2001, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2001, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
|
||||
* *
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
|
@ -171,6 +171,9 @@ SCM_INTERNAL SCM scm_c_make_frame (enum scm_vm_frame_kind vm_frame_kind,
|
|||
void *stack_holder, scm_t_ptrdiff fp_offset,
|
||||
scm_t_ptrdiff sp_offset, scm_t_uint32 *ip);
|
||||
|
||||
SCM_INTERNAL int scm_c_frame_previous (enum scm_vm_frame_kind kind,
|
||||
struct scm_frame *frame);
|
||||
|
||||
#endif
|
||||
|
||||
SCM_API SCM scm_frame_p (SCM obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue