mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
made AEL 8-bit transparent; mainly the lexer was tossing chars with the hi-order bit set. Not nice. Also, allow @ in extension names, and a backslash, also.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -278,6 +278,14 @@ extension : word EXTENMARK statement {
|
||||
$$ = npval2(PV_EXTENSION, &@1, &@3);
|
||||
$$->u1.str = $1;
|
||||
$$->u2.statements = $3; set_dads($$,$3);}
|
||||
| word AT word EXTENMARK statement {
|
||||
$$ = npval2(PV_EXTENSION, &@1, &@3);
|
||||
$$->u1.str = malloc(strlen($1)+strlen($3)+2);
|
||||
strcpy($$->u1.str,$1);
|
||||
strcat($$->u1.str,"@");
|
||||
strcat($$->u1.str,$3);
|
||||
free($1);
|
||||
$$->u2.statements = $5; set_dads($$,$5);}
|
||||
| KW_REGEXTEN word EXTENMARK statement {
|
||||
$$ = npval2(PV_EXTENSION, &@1, &@4);
|
||||
$$->u1.str = $2;
|
||||
@@ -294,7 +302,6 @@ extension : word EXTENMARK statement {
|
||||
$$->u2.statements = $8; set_dads($$,$8);
|
||||
$$->u4.regexten=1;
|
||||
$$->u3.hints = $4;}
|
||||
|
||||
;
|
||||
|
||||
/* list of statements in a block or after a case label - can be empty */
|
||||
|
||||
Reference in New Issue
Block a user