Refactor to frames code
authorAndy Wingo <wingo@pobox.com>
Mon, 14 Apr 2014 12:54:14 +0000 (14:54 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 14 Apr 2014 12:54:14 +0000 (14:54 +0200)
commit44d9705464d8f54111ed8a8a90d76f0c774e7184
treefd3b34a48f7581829d7b04a639860cf0da550d36
parent2ad91e6b34f8aa204f4cd64d9578cc218a35041d
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.
libguile/frames.c
libguile/frames.h