diff options
author | eliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-03 11:01:23 +0000 |
---|---|---|
committer | eliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-03 11:01:23 +0000 |
commit | c874e12308ba26e4c96097d729822653feb646c3 (patch) | |
tree | 6f353445a6c42366f4cc2393488f29be7e99bb83 /apps/app_stack.c | |
parent | 9cbf9781daa8ae6c4420f1bcae9c1ce8daacccb0 (diff) |
- Avoid setting .synopsis and .syntax if we are using XML documentation (or the
xml documentation wont be loaded).
- Use <variable></variable> to refer to a dialplan variable.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@160447 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_stack.c')
-rw-r--r-- | apps/app_stack.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/app_stack.c b/apps/app_stack.c index 1311bad77..92a0e0d74 100644 --- a/apps/app_stack.c +++ b/apps/app_stack.c @@ -151,11 +151,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") <parameter name="varname" required="true" /> </syntax> <description> - <para>Read a variable <replaceable>varname</replaceable> hidden by + <para>Read a variable <replaceable>varname</replaceable> hidden by <replaceable>n</replaceable> levels of gosub stack frames. Note that ${LOCAL_PEEK(0,foo)} - is the same as ${foo}, since the value of <replaceable>n</replaceable> peeks under 0 levels of - stack frames; in other words, 0 is the current level. If <replaceable>n</replaceable> exceeds - the available number of stack frames, then an empty string is returned.</para> + is the same as <variable>foo</variable>, since the value of <replaceable>n</replaceable> + peeks under 0 levels of stack frames; in other words, 0 is the current level. If + <replaceable>n</replaceable> exceeds the available number of stack frames, then an empty + string is returned.</para> </description> <see-also> <ref type="application">Gosub</ref> @@ -523,8 +524,6 @@ static int peek_read(struct ast_channel *chan, const char *cmd, char *data, char static struct ast_custom_function peek_function = { .name = "LOCAL_PEEK", - .synopsis = "Peeks at variables within the variable stack", - .syntax = "LOCAL_PEEK(<n>|<varname>)", .read = peek_read, }; |