Archived
14
0
Fork 0
Commit graph

35 commits

Author SHA1 Message Date
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
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
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
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
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
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
rizzo
3c05744de4 more formatting cleanup
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22796 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 08:24:00 +00:00
rizzo
5404b09fba more indentation fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22772 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 06:44:38 +00:00
rizzo
2ca27fb8e2 more formatting cleanup
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22750 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 02:29:32 +00:00
rizzo
38a10ed86b cleanup formatting to emphsize common code blocks
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22730 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 02:00:35 +00:00
rizzo
3a16c3d072 include/asterisk/ael_structs.h:
- protect against multiple includes of ael_structs.h
  - remove prototypes for unused or undeclared functions

pbx/ael/ael.y
  - staticize functions as appropriate
  - constify arguments
  - remove useless extern

pbx/ael/ael.flex
  - ifdef out unused functions

pbx/pbx_ael.c
  - constify some variables and arguments
  - ifdef out unused functions
  - staticize functions as appropriate

update generated files accordingly 



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22654 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-26 22:41:16 +00:00
rizzo
cc65f7202c whitespace-only change:
partly fix indentation/formatting of the bison source,
and of the generated file



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22572 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-26 18:43:29 +00:00
kpfleming
6baa8fbab8 Merge Steve Murphy's (murf) complete re-implementation of AEL, which is now no longer considered experimental :-)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22273 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-24 17:41:27 +00:00