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
tilghman
56d7229005
Bug 7062 - Rename ael2 CLI commands to ael
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24075 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 22:07:18 +00:00
russell
53b65775fb
- convert permission lists to use list macros
...
- remove unused precachesend and precachereceive variables from dundi_peer
This concludes the visit to pbx_dundi ...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23831 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 01:26:37 +00:00
russell
adbff042de
conver the lists of dundi packets to use the list macros
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23810 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 00:56:04 +00:00
russell
6e0ff9169d
- convert the dundi precache list to use the list macros
...
- change an instance of malloc+memset to ast_calloc
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23808 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 00:33:24 +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
russell
276acd2890
- convert the lists of dundi_transactions to the list macros
...
- remove an unused variable, keypending, from the dundi_peer struct
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23769 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 23:01:50 +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
kpfleming
7313590690
simplify CFLAGS handling for subdirectories
...
don't put paths into the include search path when they are not needed
don't auto-rebuild the AEL bison/flex output based on make dependencies (the generated files are already checked in, and the timestamps generated by a checkout will usually cause them to be overwritten)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23582 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 11:40:06 +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
russell
d419dcffbb
remove unneeded define - it is already in asterisk.h
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23494 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 05:27:57 +00:00
russell
42ab0b1445
convert the dundi_request list to use the list macros
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23493 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 05:24:10 +00:00
russell
06ccc3d745
convert existing comments to doxygen format
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23492 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 05:15:53 +00:00
russell
658212c4a2
fix indentation for this function
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23491 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 05:09:34 +00:00
russell
ed1caa71f4
immediately handle ast_strdupa result so that one more level of indentation
...
can be removed from this function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23490 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 05:07:52 +00:00
russell
4a493cac7d
fix the indentation of a large block
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23489 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 05:06:14 +00:00
russell
a1c748420c
handle a memory allocation failure immediately so the following large block
...
does not have to be indented
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23480 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 05:02:07 +00:00
russell
4fba9b433c
- convert the list of dundi mappings to use the list macros
...
- change an instance of malloc+memset to use ast_calloc, instead
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23468 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 04:59:36 +00:00
russell
7c173e8b7d
change a list traversal to use a for loop
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23466 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 04:28:47 +00:00
russell
d4a3a827cb
fix the indentation of a large block of code
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23465 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 04:26:11 +00:00
russell
5f70bde331
immediately handle a memory allocation failure so the rest of the function
...
doesn't have to be indented (indentation still to be fixed)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23464 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 04:23:09 +00:00
russell
211ac379f1
- convert some comments to doxygen format
...
- convert the list of dundi peers to use the list macros
- convert a use of malloc+memset to use ast_calloc
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23463 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 04:20:20 +00:00
russell
8dc07ce85e
add a small optimization for deleting all the members of a list
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23271 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29 04:13:07 +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