murf
ae7ab1aff9
The contents of branch teams/murf/bug_7598 are being folded in here.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39151 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-07 12:59:47 +00:00
murf
0a1d33454c
committing a fix for colons in goto arguments and suppressing operator messages in globals assignments.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37925 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-19 02:55:24 +00:00
russell
0851906c83
merge changes from team/murf/AEL-trunk-fixesonly
...
- fix callerid matching for extensions
- fix nested switch statements
- fix compilation with bison 2.1a or higher
(issue #7309 )
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34665 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-18 21:36:24 +00:00
kpfleming
73c525e6e2
simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07 18:54:56 +00:00
rizzo
89c5a63088
more simplifications
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24460 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 17:07:56 +00:00
rizzo
af3527e67d
consistent rule for goto...
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24431 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 16:58:16 +00:00
rizzo
35c0f353a2
remove another useless nonterminal
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24430 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 16:46:55 +00:00
rizzo
5fbd74dfef
remove a useless nonterminal
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24429 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 16:38:50 +00:00
rizzo
bc6ca5127d
more simplifications
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24428 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 16:37:14 +00:00
rizzo
cb2e7e5fe0
remove more shift-reduce conflicts
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24427 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 16:34:31 +00:00
rizzo
fb458f5cf7
remove a redundant rule
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24426 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 16:33:00 +00:00
rizzo
34daabde85
reduce shift/reduce warnings
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24425 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 16:28:48 +00:00
rizzo
d9a549e560
simplify case_statements
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24424 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 16:12:31 +00:00
rizzo
088b8e75cf
switch statement in one place
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24423 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 16:08:35 +00:00
rizzo
f2f9525d91
common syntax for context name
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24421 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 16:00:49 +00:00
rizzo
cf5362948b
another instance of context name
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24344 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 20:50:18 +00:00
rizzo
4771c6238d
fix a bug previously introduced in the handling of timespec.
...
Fortunately we have regression tests!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24343 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 20:44:56 +00:00
rizzo
70b436e197
simplify case statements
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24341 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 20:18:02 +00:00
rizzo
35a2caa607
one more instance of assignment
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24340 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 20:13:58 +00:00
rizzo
863c65f310
global_statement is really an assignment statement
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24339 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 20:11:24 +00:00
rizzo
62c2fd849e
expressions used in if, while, switch are all of the same kind
...
(it remains to see why 'random' gives 16 shift/reduce conflicts...)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24292 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 19:17:49 +00:00
rizzo
d0683971e0
macro statements can be empty
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24258 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 18:51:33 +00:00
rizzo
ef483c5c9f
empty arglists are valid
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24257 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 18:48:47 +00:00
rizzo
ffd1bcd9f3
rename the rule for context names properly
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24256 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 18:45:18 +00:00
rizzo
40d3c6b9b2
simplify handling of 'include' lists
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24255 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 18:41:57 +00:00
rizzo
336d560b5b
... and use a single rule for timespec
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24254 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 18:33:15 +00:00
rizzo
9e5769ac19
use a single rule to parse timeranges hh:mm-hh:mm
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24252 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 18:23:41 +00:00
rizzo
ef8ba06c68
if/ifTime/random statements are all the same thing
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24248 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 18:08:27 +00:00
rizzo
634d0379f7
includedname is just a regular word_or_default name,
...
no need for a separate nonterminal
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24219 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 17:58:57 +00:00
rizzo
533cd5d2f5
remove useless 'extern' declaration
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24216 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 17:37:33 +00:00
rizzo
ff3229d132
remove some unneeded local variables.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24178 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 14:27:19 +00:00
rizzo
e2130b6ab3
more usage of nword(). I think the references to source
...
line/columns are also correct now.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24175 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 14:25:01 +00:00
rizzo
f087b9e8e2
more simplifications involving linku1
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24174 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 14:12:01 +00:00
rizzo
7bccde50c6
correct linku1() to handle the case tail = NULL correctly.
...
Now the function can be used to simplify other conditional blocks.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24173 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 14:08:18 +00:00
russell
f2062e9c84
The build of aelparse was still broken in some cases, so instead of having to
...
keep figuring out workarounds for build issues on various platforms, just go
ahead and remove what started all of this. Two instances of ast_calloc have
been changed to calloc in pbx/ael/ael.y.
ast_copy_string isn't actually needed here because the only place it is used is
in ast_expr2f.c. However, the utils Makefile already builds its own
ast_expr2f.o with -DSTANDALONE, which makes it use strncpy instead of
ast_copy_string.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24115 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 03:03:27 +00:00
rizzo
eac1edd58f
fix dereferencing freed memory
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23795 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 00:02:12 +00:00
rizzo
e3c71666dd
switch a couple of operands.
...
This gives slightly different results from the previous code
on syntax errors, but it actually makes fewer mistakes so
i think it is an improvement. Additionally, it makes the
code more uniform (the other call of reset_argcount
occurs after LP and not before).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23783 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 23:53:22 +00:00
rizzo
fce5938ee4
more nword() usages, and mark some dubious places.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23669 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 14:06:04 +00:00
rizzo
00e4b7e562
introduce a new frontend to npval for the very common case
...
of creating an object for a tring value PV_WORD.
Start using it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23640 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 13:57:08 +00:00
rizzo
8dba0c2ad5
another client for switchlist_block
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23615 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 12:46:15 +00:00
rizzo
68f13a13c7
more merge of common blocks through intermediate rules.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23614 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 12:44:54 +00:00
rizzo
52268e0664
make destroy_pval able to handle a NULL value
...
(the warning should be removed);
define a 'elements_block' rule to simplify some other rules
removing duplicated code - runtests seems happy with this.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23613 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 12:30:08 +00:00
rizzo
c5049bbee1
remove some commented-out code
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23612 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 12:14:33 +00:00
rizzo
061c47780e
simplify updating the token position markers
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23611 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 12:12:39 +00:00
rizzo
27f2b805b2
more simplifications in the bison sources,
...
more annotation with XXX of dubious code.
(The code still passes tests)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23534 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 08:21:46 +00:00
rizzo
5a2411d0df
- 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: http://svn.digium.com/svn/asterisk/trunk@23130 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-28 14:17:03 +00:00
rizzo
06c0629cdc
last batch of npval -> npval2 changes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23109 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-28 11:20:21 +00:00
rizzo
37f396a2c1
more npval -> npval2 changes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23088 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-28 10:06:10 +00:00
rizzo
8d0224e1fa
more npval -> npval2 conversions
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23066 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-28 06:26:27 +00:00
rizzo
64087d59b3
fix destructor for pval objects (thanks to Steve Murphy);
...
rearrange initial part of ael.flex for flexibility.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23011 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 21:09:52 +00:00