diff options
author | Neil Jerram <neil@ossau.uklinux.net> | 2001-08-02 20:26:21 +0000 |
---|---|---|
committer | Neil Jerram <neil@ossau.uklinux.net> | 2001-08-02 20:26:21 +0000 |
commit | baffb19f273aaa2fe71f6dcd6f8ca9e1c23eab91 (patch) | |
tree | 5616a25e910c2d9de19ad8ff2363328125ab5f00 /libguile/stacks.c | |
parent | d3b924ba3bd0bf4958c1893e8f4ff66216b5f2fe (diff) | |
download | guile-baffb19f273aaa2fe71f6dcd6f8ca9e1c23eab91.tar.gz |
* Explain cutting args for `make-stack'.
Diffstat (limited to 'libguile/stacks.c')
-rw-r--r-- | libguile/stacks.c | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/libguile/stacks.c b/libguile/stacks.c index c49924a38..c00b47bf5 100644 --- a/libguile/stacks.c +++ b/libguile/stacks.c @@ -420,9 +420,26 @@ SCM_DEFINE (scm_make_stack, "make-stack", 1, 0, 1, "Create a new stack. If @var{obj} is @code{#t}, the current\n" "evaluation stack is used for creating the stack frames,\n" "otherwise the frames are taken from @var{obj} (which must be\n" - "either a debug object or a continuation).\n" - "@var{args} must be a list of integers and specifies how the\n" - "resulting stack will be narrowed.") + "either a debug object or a continuation).\n\n" + "@var{args} should be a list containing any combination of\n" + "integer, procedure and @code{#t} values.\n\n" + "These values specify various ways of cutting away uninteresting\n" + "stack frames from the top and bottom of the stack that\n" + "@code{make-stack} returns. They come in pairs like this:\n" + "@code{(@var{inner_cut_1} @var{outer_cut_1} @var{inner_cut_2}\n" + "@var{outer_cut_2} @dots{})}.\n\n" + "Each @var{inner_cut_N} can be @code{#t}, an integer, or a\n" + "procedure. @code{#t} means to cut away all frames up to but\n" + "excluding the first user module frame. An integer means to cut\n" + "away exactly that number of frames. A procedure means to cut\n" + "away all frames up to but excluding the application frame whose\n" + "procedure matches the specified one.\n\n" + "Each @var{outer_cut_N} can be an integer or a procedure. An\n" + "integer means to cut away that number of frames. A procedure\n" + "means to cut away frames down to but excluding the application\n" + "frame whose procedure matches the specified one.\n\n" + "If the @var{outer_cut_N} of the last pair is missing, it is\n" + "taken as 0.") #define FUNC_NAME s_scm_make_stack { long n, size; |