summaryrefslogtreecommitdiff
path: root/pbx/ael/ael_lex.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-04-28 14:17:03 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-04-28 14:17:03 +0000
commit799126216eccca77aa5ad5a4a163a87ff7e38949 (patch)
tree51e1d1d40a35cd7292c6efb15f2c4338143c2047 /pbx/ael/ael_lex.c
parent43bfe82828b932bd59a7d0d1d49845b9a921ec26 (diff)
- fix miscalculation in column numbers when multiple tabs
or empty lines are involved; - change linku1() to return the head of the list (unused at the moment); - ignore the source line number in runtests as they change with the source and cause mismatches in the comparison with the reference output. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/ael/ael_lex.c')
-rw-r--r--pbx/ael/ael_lex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbx/ael/ael_lex.c b/pbx/ael/ael_lex.c
index 5d0b4e73c..b1aa53f51 100644
--- a/pbx/ael/ael_lex.c
+++ b/pbx/ael/ael_lex.c
@@ -1309,7 +1309,7 @@ case 40:
/* rule 40 can match eol */
YY_RULE_SETUP
#line 216 "ael.flex"
-{ my_lineno++; my_col = 0; }
+{ my_lineno++; my_col = 1; }
YY_BREAK
case 41:
YY_RULE_SETUP
@@ -1319,7 +1319,7 @@ YY_RULE_SETUP
case 42:
YY_RULE_SETUP
#line 218 "ael.flex"
-{ my_col += 8-(my_col%8); }
+{ my_col += (yyleng*8)-(my_col%8); }
YY_BREAK
case 43:
YY_RULE_SETUP