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
31362c2aec
more simplifications
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23807 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 00:31:47 +00:00
rizzo
76542d50f3
always trim the trailing ';'
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23806 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 00:27:27 +00:00
rizzo
f657c7d759
comment usage of contexts
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23805 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 00:20:11 +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
1058940398
put back some simplifications, this time really tested
...
(ael_lex.c manually deleted, runtest passed)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23782 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 23:31:43 +00:00
rizzo
2746adf5a3
revert ael.flex to the last correct version.
...
For some reason the makefile did not regenerate the
ael_lex.c file correctly so i was not testing the changes.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23781 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 23:21:49 +00:00
rizzo
1559c47a4f
another small set of simplifications
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23780 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 23:04:58 +00:00
rizzo
eb6ab4720c
simplify logic (runtest passed).
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23758 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 22:56:41 +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
ee42775399
more comments
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23557 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 09:24:04 +00:00
rizzo
79b955ea61
comment some code
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23550 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 09:06:28 +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
e165a9c6b9
make the 'runtest' filter less strict on line numbers.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23154 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-28 15:51:31 +00:00
rizzo
4b4456cf10
simplify handling of line numbers
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23153 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-28 15:42:13 +00:00
rizzo
e00ea05cea
fix last known bug in computing columb numbers in error messages
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23152 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-28 15:33:05 +00:00
rizzo
859a7936e1
fix a bug in computing line numbers
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23151 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-28 15:24:30 +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
rizzo
33978b8dad
always call the destructor
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22989 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 20:23:49 +00:00
rizzo
ad431d039d
document variable and options used.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 20:08:42 +00:00
rizzo
98e3db96a7
document options, move objects of the same type close to
...
each other so it is evident what they are.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22958 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 19:51:59 +00:00
rizzo
1fae650d42
slightly restructure a block to reduce nesting,
...
mark some missing error checks
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22957 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 19:29:14 +00:00
rizzo
1d7939dc55
imore npval -> npval2 conversions
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22955 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 19:14:07 +00:00
rizzo
eef97cc6b4
more npval2 replacement, mark XXX dubious arguments
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22930 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 18:26:37 +00:00
rizzo
377da00caf
more npval -> npval2 replacement, and a fix for a likely
...
bug (marked XXX)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22929 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 18:18:12 +00:00
rizzo
c4484da6b0
introduce a simplified interface for npval and start using it
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22928 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 18:09:20 +00:00
rizzo
cdd3c42dda
formatting fixes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22906 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 17:59:09 +00:00
rizzo
b3bf9462b4
use ast_calloc for memory allocations
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22903 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 17:43:49 +00:00
rizzo
6378d5405a
fix a couple of bugs in arguments to npval
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22902 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 17:39:55 +00:00
rizzo
f61c9a3779
remove some commented-out code
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22901 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 17:16:41 +00:00
rizzo
9558688d60
finish packing yylloc into macros
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22900 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 17:10:15 +00:00
rizzo
c57318b3f1
add some comments to the code
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22869 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 17:00:09 +00:00
rizzo
4c3d554f4f
more formatting cleanup
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22868 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 16:40:25 +00:00
rizzo
c5bf7f5572
more dup removal
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22844 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 11:43:34 +00:00
rizzo
a025f2e456
more duplicate removal
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22843 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 11:34:44 +00:00
rizzo
80c2929289
remove duplicated code
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22842 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 11:20:26 +00:00
rizzo
e06b5cef42
staticize c_prevword()
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22820 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 10:13:39 +00:00
rizzo
93dded1d19
more indentation fixes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22798 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 08:37:40 +00:00
rizzo
bb2e30b629
use asprintf instead of malloc
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22797 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 08:31:18 +00:00