summaryrefslogtreecommitdiff
path: root/libguile/programs.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2010-10-08 12:21:20 +0200
committerAndy Wingo <wingo@pobox.com>2010-10-08 12:31:56 +0200
commitb262b74b51142bbc066438fe034c7c22c000feb0 (patch)
tree6d9a22fe17fdaf29df3e73ef9bd97c9f211bbe6d /libguile/programs.h
parentd608db1d593cf46af4a5fc519dcc7274d422378b (diff)
downloadguile-b262b74b51142bbc066438fe034c7c22c000feb0.tar.gz
add program-sources-pre-retire to core and define frame-next-source
* libguile/programs.h: * libguile/programs.c (scm_program_source): Add an optional arg, the sources table to traverse. Defaults to the result of scm_program_sources. * module/system/vm/program.scm (program-sources-pre-retire): Move definition here from (system vm traps), and export. * module/system/vm/traps.scm: Adapt. * module/system/vm/frame.scm (frame-next-source): New exported binding, returns the source line corresponding to the next instruction instead of the previous instruction.
Diffstat (limited to 'libguile/programs.h')
-rw-r--r--libguile/programs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/programs.h b/libguile/programs.h
index 7f9b6f72d..d0e788e51 100644
--- a/libguile/programs.h
+++ b/libguile/programs.h
@@ -54,7 +54,7 @@ SCM_API SCM scm_program_base (SCM program);
SCM_API SCM scm_program_meta (SCM program);
SCM_API SCM scm_program_bindings (SCM program);
SCM_API SCM scm_program_sources (SCM program);
-SCM_API SCM scm_program_source (SCM program, SCM ip);
+SCM_API SCM scm_program_source (SCM program, SCM ip, SCM sources);
SCM_API SCM scm_program_arities (SCM program);
SCM_API SCM scm_program_objects (SCM program);
SCM_API SCM scm_program_module (SCM program);