From 3873227e9d6ad1f89327a8fad02c3d2707874d15 Mon Sep 17 00:00:00 2001 From: "Eliel C. Sardanons" Date: Mon, 3 Nov 2008 17:11:22 +0000 Subject: [PATCH] Add LOCAL() function XML documentation. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153947 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_stack.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/apps/app_stack.c b/apps/app_stack.c index 3f73e13d6b..beeea30f63 100644 --- a/apps/app_stack.c +++ b/apps/app_stack.c @@ -106,6 +106,23 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Removes last label on the stack, discarding it. + + + Manage variables local to the gosub stack frame. + + + + + + Read and write a variable local to the gosub stack frame, once we Return() it will be lost + (or it will go back to whatever value it had before the Gosub()). + + + Gosub + GosubIf + Return + + ***/ static const char *app_gosub = "Gosub"; @@ -431,8 +448,6 @@ static int local_write(struct ast_channel *chan, const char *cmd, char *var, con static struct ast_custom_function local_function = { .name = "LOCAL", - .synopsis = "Variables local to the gosub stack frame", - .syntax = "LOCAL()", .write = local_write, .read = local_read, };