summaryrefslogtreecommitdiff
path: root/libguile/procs.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2013-05-16 23:38:29 +0200
committerAndy Wingo <wingo@pobox.com>2013-06-09 23:59:01 +0200
commitbf8328ec16cbe76b7af9703bb41e964865034561 (patch)
tree53957dcaa2955689353c2cab6c8435b190fb1978 /libguile/procs.c
parent9128b1a19fe89de1aacafe5ccffd06e193f531bc (diff)
downloadguile-bf8328ec16cbe76b7af9703bb41e964865034561.tar.gz
procedure-documentation works on RTL procedures
* libguile/procprop.h: * libguile/procprop.c (scm_procedure_documentation): Move here from procs.c, and to make the logic more similar to that of procedure-name, which allows RTL programs to dispatch to rtl-program-documentation. * libguile/programs.c (scm_i_rtl_program_documentation): * libguile/programs.h: * module/system/vm/program.scm (rtl-program-documentation): New plumbing. * module/system/vm/debug.scm (find-program-docstring): New interface to grovel ELF for a docstring.
Diffstat (limited to 'libguile/procs.c')
-rw-r--r--libguile/procs.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/libguile/procs.c b/libguile/procs.c
index bda6d3448..8d9ef15b4 100644
--- a/libguile/procs.c
+++ b/libguile/procs.c
@@ -66,21 +66,6 @@ SCM_DEFINE (scm_thunk_p, "thunk?", 1, 0, 0,
}
#undef FUNC_NAME
-SCM_GLOBAL_SYMBOL (scm_sym_documentation, "documentation");
-
-SCM_DEFINE (scm_procedure_documentation, "procedure-documentation", 1, 0, 0,
- (SCM proc),
- "Return the documentation string associated with @code{proc}. By\n"
- "convention, if a procedure contains more than one expression and the\n"
- "first expression is a string constant, that string is assumed to contain\n"
- "documentation for that procedure.")
-#define FUNC_NAME s_scm_procedure_documentation
-{
- SCM_VALIDATE_PROC (SCM_ARG1, proc);
- return scm_procedure_property (proc, scm_sym_documentation);
-}
-#undef FUNC_NAME
-
/* Procedure-with-setter
*/