[asterisk-commits] trunk r23088 - in /trunk/pbx/ael: ael.tab.c ael.y
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Apr 28 03:06:10 MST 2006
Author: rizzo
Date: Fri Apr 28 05:06:10 2006
New Revision: 23088
URL: http://svn.digium.com/view/asterisk?rev=23088&view=rev
Log:
more npval -> npval2 changes
Modified:
trunk/pbx/ael/ael.tab.c
trunk/pbx/ael/ael.y
Modified: trunk/pbx/ael/ael.tab.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/ael/ael.tab.c?rev=23088&r1=23087&r2=23088&view=diff
==============================================================================
--- trunk/pbx/ael/ael.tab.c (original)
+++ trunk/pbx/ael/ael.tab.c Fri Apr 28 05:06:10 2006
@@ -563,7 +563,7 @@
{
0, 157, 157, 160, 161, 172, 175, 176, 177, 178,
181, 185, 188, 192, 195, 200, 204, 209, 215, 218,
- 221, 224, 229, 232, 237, 238, 239, 242, 242, 248,
+ 221, 225, 230, 233, 237, 238, 239, 242, 242, 248,
251, 256, 259, 260, 261, 264, 267, 268, 269, 270,
271, 272, 272, 276, 277, 280, 285, 289, 294, 299,
308, 309, 312, 315, 315, 320, 320, 325, 341, 361,
@@ -2038,36 +2038,36 @@
case 19:
#line 218 "ael.y"
{
- (yyval.pval)=npval(PV_MACRO,(yylsp[-6]).first_line,(yylsp[0]).last_line, (yylsp[-6]).first_column, (yylsp[0]).last_column);
+ (yyval.pval) = npval2(PV_MACRO, &(yylsp[-6]), &(yylsp[0]));
(yyval.pval)->u1.str = (yyvsp[-5].str); (yyval.pval)->u2.arglist = (yyvsp[-3].pval); ;}
break;
case 20:
#line 221 "ael.y"
{
- (yyval.pval)=npval(PV_MACRO,(yylsp[-6]).first_line,(yylsp[0]).last_line, (yylsp[-6]).first_column, (yylsp[0]).last_column);
- (yyval.pval)->u1.str = (yyvsp[-5].str); (yyval.pval)->u3.macro_statements = (yyvsp[-1].pval); ;}
+ (yyval.pval) = npval2(PV_MACRO, &(yylsp[-6]), &(yylsp[0]));
+ (yyval.pval)->u1.str = (yyvsp[-5].str);
+ (yyval.pval)->u3.macro_statements = (yyvsp[-1].pval); ;}
break;
case 21:
-#line 224 "ael.y"
- {
- (yyval.pval)=npval(PV_MACRO,(yylsp[-5]).first_line,(yylsp[0]).last_line, (yylsp[-5]).first_column, (yylsp[0]).last_column);
- (yyval.pval)->u1.str = (yyvsp[-4].str); /* pretty empty! */ ;}
+#line 225 "ael.y"
+ {
+ (yyval.pval) = npval2(PV_MACRO, &(yylsp[-5]), &(yylsp[0]));
+ (yyval.pval)->u1.str = (yyvsp[-4].str); ;}
break;
case 22:
-#line 229 "ael.y"
- {
- (yyval.pval)=npval(PV_GLOBALS,(yylsp[-3]).first_line,(yylsp[0]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column);
+#line 230 "ael.y"
+ {
+ (yyval.pval) = npval2(PV_GLOBALS, &(yylsp[-3]), &(yylsp[0]));
(yyval.pval)->u1.statements = (yyvsp[-1].pval);;}
break;
case 23:
-#line 232 "ael.y"
- {
- (yyval.pval)=npval(PV_GLOBALS,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);
- /* and that's all */ ;}
+#line 233 "ael.y"
+ { /* empty globals is OK */
+ (yyval.pval) = npval2(PV_GLOBALS, &(yylsp[-2]), &(yylsp[0])); ;}
break;
case 24:
@@ -2093,7 +2093,7 @@
case 28:
#line 242 "ael.y"
{
- (yyval.pval)=npval(PV_VARDEC,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column);
+ (yyval.pval) = npval2(PV_VARDEC, &(yylsp[-4]), &(yylsp[0]));
(yyval.pval)->u1.str = (yyvsp[-4].str);
(yyval.pval)->u2.val = (yyvsp[-1].str); ;}
break;
Modified: trunk/pbx/ael/ael.y
URL: http://svn.digium.com/view/asterisk/trunk/pbx/ael/ael.y?rev=23088&r1=23087&r2=23088&view=diff
==============================================================================
--- trunk/pbx/ael/ael.y (original)
+++ trunk/pbx/ael/ael.y Fri Apr 28 05:06:10 2006
@@ -216,22 +216,22 @@
$$ = npval2(PV_MACRO, &@1, &@8);
$$->u1.str = $2; $$->u2.arglist = $4; $$->u3.macro_statements = $7; }
| KW_MACRO word LP arglist RP LC RC {
- $$=npval(PV_MACRO, at 1.first_line, at 7.last_line, @1.first_column, @7.last_column);
+ $$ = npval2(PV_MACRO, &@1, &@7);
$$->u1.str = $2; $$->u2.arglist = $4; }
| KW_MACRO word LP RP LC macro_statements RC {
- $$=npval(PV_MACRO, at 1.first_line, at 7.last_line, @1.first_column, @7.last_column);
- $$->u1.str = $2; $$->u3.macro_statements = $6; }
+ $$ = npval2(PV_MACRO, &@1, &@7);
+ $$->u1.str = $2;
+ $$->u3.macro_statements = $6; }
| KW_MACRO word LP RP LC RC {
- $$=npval(PV_MACRO, at 1.first_line, at 6.last_line, @1.first_column, @6.last_column);
- $$->u1.str = $2; /* pretty empty! */ }
+ $$ = npval2(PV_MACRO, &@1, &@6);
+ $$->u1.str = $2; }
;
globals : KW_GLOBALS LC global_statements RC {
- $$=npval(PV_GLOBALS, at 1.first_line, at 4.last_line, @1.first_column, @4.last_column);
+ $$ = npval2(PV_GLOBALS, &@1, &@4);
$$->u1.statements = $3;}
- | KW_GLOBALS LC RC /* empty global is OK */ {
- $$=npval(PV_GLOBALS, at 1.first_line, at 3.last_line, @1.first_column, @3.last_column);
- /* and that's all */ }
+ | KW_GLOBALS LC RC { /* empty globals is OK */
+ $$ = npval2(PV_GLOBALS, &@1, &@3); }
;
global_statements : global_statement {$$=$1;}
@@ -240,7 +240,7 @@
;
global_statement : word EQ { reset_semicount(parseio->scanner); } word SEMI {
- $$=npval(PV_VARDEC, at 1.first_line, at 5.last_line, @1.first_column, @5.last_column);
+ $$ = npval2(PV_VARDEC, &@1, &@5);
$$->u1.str = $1;
$$->u2.val = $4; }
;
More information about the asterisk-commits
mailing list