The upgrade of application argument separators to comma has an effect on AEL; I commented out the code that substitutes commas with vertbars, so we can get apps to parse their args correctly.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Steve Murphy
2007-07-26 01:33:55 +00:00
parent 0f326a83c5
commit f7213d2411

View File

@@ -149,8 +149,8 @@ static void fix_gotos_in_extensions(struct ael_extension *exten);
static pval *get_extension_or_contxt(pval *p);
static pval *get_contxt(pval *p);
static void remove_spaces_before_equals(char *str);
static void substitute_commas(char *str);
/* static void substitute_commas(char *str); */
#ifdef NOMORE
/*! \brief I am adding this code to substitute commas with vertbars in the args to apps */
static void substitute_commas(char *str)
{
@@ -171,7 +171,7 @@ static void substitute_commas(char *str)
p++;
}
}
#endif
/* PRETTY PRINTER FOR AEL: ============================================================================= */
@@ -3474,7 +3474,7 @@ static void gen_prios(struct ael_extension *exten, char *label, pval *statement,
first = 0;
}
else
strcat(buf1,"|");
strcat(buf1,",");
strcat(buf1,p2->u1.str);
}
if (!first)
@@ -3492,8 +3492,8 @@ static void gen_prios(struct ael_extension *exten, char *label, pval *statement,
buf1[0] = 0;
for (p2 = p->u2.arglist; p2; p2 = p2->next) {
if (p2 != p->u2.arglist )
strcat(buf1,"|");
substitute_commas(p2->u1.str);
strcat(buf1,",");
/*substitute_commas(p2->u1.str); */
strcat(buf1,p2->u1.str);
}
pr->app = strdup(p->u1.str);