murf
fc79f14afc
Merged revisions 49061 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49061 | murf | 2006-12-29 17:40:37 -0700 (Fri, 29 Dec 2006) | 1 line
A fix for 8661, where the CUT func needed to have comma args converted to vertical bars. I hope this change does little harm.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49062 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-30 00:51:07 +00:00
murf
b9f48ef3a2
Jason is having problems with the inclusion of <err.h>; it appears to be unnecessary for sucessful builds, so I either removed or commented out the inclusions from all the AEL related code. New outputs from bison/flex are included, etc.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49019 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-28 17:56:21 +00:00
file
65d15d6d62
Merged revisions 49009 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49009 | file | 2006-12-27 17:28:46 -0500 (Wed, 27 Dec 2006) | 2 lines
ast_copy_string is not available when LOW_MEMORY is used and things are being built in the utils directory, so we need to resort to the old method of strncpy. (issue #8579 reported by mottano)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49010 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27 22:30:28 +00:00
murf
8a8ca18633
This small update will generate WARNINGS if there is garbage in your extensions.conf file (liken extem => instead of exten => !)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48723 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 15:52:44 +00:00
russell
0a0c8869de
Staticize one, and Constify a bunch of usage strings for CLI commands.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48303 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 07:28:56 +00:00
file
dbb0e8dee9
More fixes for referencing a structure after it has been freed. (issue #8425 reported by arkadia)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48040 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27 15:48:57 +00:00
file
094a874ee9
Merged revisions 48038 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r48038 | file | 2006-11-27 10:32:19 -0500 (Mon, 27 Nov 2006) | 10 lines
Merged revisions 48037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r48037 | file | 2006-11-27 10:30:37 -0500 (Mon, 27 Nov 2006) | 2 lines
Do not reference the freed outgoing structure in the debug message. (issue #8425 reported by arkadia)
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48039 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27 15:33:56 +00:00
murf
d9a503cf36
Eager people beat me to fixing the messed if, but we all forgot to update the regressions. Until now.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47566 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 18:20:56 +00:00
file
289bbd4bb1
Clean up last commit to better conform to standards.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47556 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 17:36:28 +00:00
murf
95c4f20c77
AEL need not complain about parkedcalls not being found... just confuses users
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47554 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 17:32:16 +00:00
file
f3a3df4b82
Fine, take this.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47465 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 20:05:31 +00:00
file
7698a6c5d0
Hello compiler working, goodbye compiler warning. (fix compiler warning introduced from pbx_dundi optimizations)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47461 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 19:42:15 +00:00
russell
02268037a4
Various little bits of code cleanup to reduce nesting, remove useless casts,
...
and to remove a duplicated error message after a memory allocation error
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47410 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 04:30:23 +00:00
russell
7fe9db16b5
Make pbx_dundi compile again. Sorry. :(
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47213 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-05 01:04:29 +00:00
russell
202f63bdb5
use the AST_MODULE_LOAD_* return codes from load_module()
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47207 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04 22:08:35 +00:00
russell
bb3e3ea3a5
simplify a couple of loops
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47206 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04 21:54:37 +00:00
russell
bb9195d20e
Do some minor cleanup to the section of code that sets the EID by getting the
...
mac address for an ethernet interface
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47204 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04 21:44:48 +00:00
russell
ab30798e24
Add the ability to pass options to the Dial application when using the DUNDi
...
switch in the dialplan by setting the DUNDIDIALARGS channel variable.
(issue #8084 , patch by bluecrow76, with small modifications and documentation
updates)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46781 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-01 18:40:13 +00:00
kpfleming
470f688a28
Merged revisions 46200 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r46200 | kpfleming | 2006-10-25 09:32:08 -0500 (Wed, 25 Oct 2006) | 2 lines
apparently developers are still not aware that they should be use ast_copy_string instead of strncpy... fix up many more users, and fix some bugs in the process
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46201 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 14:44:50 +00:00
murf
e38441a0ee
Correction for bug 8128 in trunk
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45078 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-13 18:08:33 +00:00
russell
5422cba950
put flags in an enum and remove a couple of unused defines
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44944 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-12 16:51:31 +00:00
murf
5f6e374d84
These mods fix a problem pointed out by dgartang, where in certain situations, the target of a goto cannot be found, even right under your nose. This is because the current context is not updated properly, and rather than waste time and find why and where the context should have been updated, I just use my newly added 'dad' ptrs, and pop until I have either the context or extension, and use that instead.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44489 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-05 18:29:06 +00:00
kpfleming
1a08d9e31b
Merged revisions 44378 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r44378 | kpfleming | 2006-10-04 14:47:22 -0500 (Wed, 04 Oct 2006) | 4 lines
update thread creation code a bit
reduce standard thread stack size slightly to allow the pthreads library to allocate the stack+data and not overflow a power-of-2 allocation in the kernel and waste memory/address space
add a new stack size for 'background' threads (those that don't handle PBX calls) when LOW_MEMORY is defined
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44379 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04 19:51:38 +00:00
murf
a2c2aa216d
These changes resolve the problems in bug 8090, where there's a crash compiling an empty context
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44377 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04 19:33:37 +00:00
murf
c54501d641
These changes correspond to the changes to app_stack's Gosub() application
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44263 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-03 16:42:26 +00:00
mogorman
4a1aaf52ae
bug #8076 check option_debug before printing to debug channel.
...
patch provided in bugnote, with minor changes.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44253 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-03 15:53:07 +00:00
pcadach
ec81a6f866
Merged revisions 44186 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r44186 | pcadach | 2006-10-03 00:52:56 +0600 (Втр, 03 Окт 2006) | 1 line
Missed part of userconf functionality for chan_h323
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44196 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02 19:01:10 +00:00
kpfleming
a8442c9b22
Merged revisions 44055 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r44055 | kpfleming | 2006-09-29 17:47:40 -0500 (Fri, 29 Sep 2006) | 2 lines
fix a few build system bugs, and convert Makefiles to be compatible with GNU make 3.80
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44056 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29 22:48:43 +00:00
kpfleming
170dae49be
Merged revisions 43996-43997,44008,44011-44012 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r43996 | kpfleming | 2006-09-29 11:47:05 -0500 (Fri, 29 Sep 2006) | 2 lines
another cross-compile fix
........
r43997 | kpfleming | 2006-09-29 11:52:27 -0500 (Fri, 29 Sep 2006) | 2 lines
support --without-curl in configure script
........
r44008 | kpfleming | 2006-09-29 13:25:49 -0500 (Fri, 29 Sep 2006) | 2 lines
don't abuse CFLAGS and LDFLAGS for build of Asterisk components, because they are also then used for non-Asterisk components (like menuselect); use our own variables instead
........
r44011 | kpfleming | 2006-09-29 13:40:17 -0500 (Fri, 29 Sep 2006) | 2 lines
missed one conversion to ASTCFLAGS
........
r44012 | kpfleming | 2006-09-29 13:49:07 -0500 (Fri, 29 Sep 2006) | 2 lines
yet another place where we were not using the correct CFLAGS by default
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44013 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29 18:54:21 +00:00
murf
52da543985
This commits the changes to AEL to use the gosub-with-args from Tilghman to perform macro calls. This results in substantially smaller stack footprint, which allows macro call depths in excess of 100,000 levels, rather than the limit of 7 calls deep, which the Macro app is subject to.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43747 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-27 03:45:22 +00:00
murf
03723031d2
This commits a change to return MODULE_LOAD_FAILURE on error, and SUCCESS (instead of 0) when all goes well for bug 8004
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43507 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-22 21:34:04 +00:00
murf
d55e6f507d
As per bug 8004, we now return AST_MODULE_LOAD_DECLINE when we can't read extensions.ael
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43506 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-22 21:17:07 +00:00
tilghman
2a2a143966
Lots more removal of deprecated things
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43452 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21 21:59:12 +00:00
tilghman
e8ef9fd3ba
Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43364 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 20:40:39 +00:00
mattf
b759835a90
Various updates from PCadach's chan_h323-live branch
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43294 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19 21:07:49 +00:00
mogorman
d5df46a93e
similar patch for verbose vs debug with minor changes
...
bug 2617
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43272 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19 16:23:45 +00:00
kpfleming
5aacb6a82d
merge qwell's CLI verbification work
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18 19:54:18 +00:00
kpfleming
5c0e56df21
merge markster's usersconf branch with some slight changes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43052 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-16 23:53:58 +00:00
mogorman
73925ee14a
everything that loads a config that needs a config file to run
...
now reports AST_MODULE_LOAD_DECLINE when loading if config file
is not there, also fixed an error in res_config_pgsql where it
had a non static function when it should.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41633 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 21:00:20 +00:00
murf
6a1a080f67
This commit is a basic AEL enhancement: c-style comments
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41527 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 02:53:15 +00:00
russell
e2d60aab8c
Merged revisions 41269 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r41269 | russell | 2006-08-29 09:33:34 -0400 (Tue, 29 Aug 2006) | 3 lines
clean up last commit ... most notably, there is no reason to do heap
allocations here, and it also included a potential memory leak
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41270 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-29 13:40:04 +00:00
murf
aaf61b07bc
Bugfix for 7813 applied to trunk as per patch supplied by stevens
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41267 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-29 12:24:01 +00:00
kpfleming
0ba6df7e01
GNU make already knows how to quietly ignore non-existent files in 'include' directives
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41209 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26 23:58:47 +00:00
murf
5c397dd961
Changes to fix all problems reported in 7804 are included here.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41150 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-25 20:43:51 +00:00
file
9276fda5d0
Make a warning about an unused function & variable go away on the stand alone AEL build.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40819 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-22 02:24:46 +00:00
kpfleming
8b0c007ad9
merge new_loader_completion branch, including (at least):
...
- restructured build tree and makefiles to eliminate recursion problems
- support for embedded modules
- support for static builds
- simpler cross-compilation support
- simpler module/loader interface (no exported symbols)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21 02:11:39 +00:00
murf
55a5f94684
This commit merges the contents of 7721, as it applied to the trunk version. Added the item that would previously trigger a false error to test1.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39571 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-12 19:28:33 +00:00
murf
0d42de398c
added a -q for quiet, option to aelparse
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39543 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-11 21:30:03 +00:00
murf
eb82465850
This bug adds enhancement as per bug 7606, the -w
...
option to aelparse.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39430 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-09 01:16:37 +00:00
russell
7eba1e86bd
Merge team/russell/ast_verbose_threadstorage
...
- instead of defining a free() wrapper in a bunch of files, define it as
ast_free() in utils.h and remove the copies from all the files.
- centralize and abstract the code used for doing thread storage. The code
lives in threadstorage.h, with one function being implemented in utils.c.
This new API includes generic thread storage as well as special functions
for handling thread local dynamic length string buffers.
- update ast_inet_ntoa() to use the new threadstorage API
- update ast_state2str() to use the new threadstorage API
- update ast_cli() to use the new threadstorage API
- Modify manager_event() to use thread storage. Instead of using a buffer of
4096 characters as the workspace for building the manager event, use a thread
local dynamic string. Now there is no length limitation on the length of the
body of a manager event.
- Significantly simplify the handling of ast_verbose() ...
- Instead of using a static char buffer and a lock to make sure only one
thread can be using ast_verbose() at a time, use a thread local dynamic
string as the workspace for preparing the verbose message. Instead of
locking around the entire function, the only locking done now is when the
message has been built and is being deliviered to the list of registered
verbose message handlers.
- This function was doing a strdup() on every message passed to it and
keeping a queue of the last 200 messages in memory. This has been
completely removed. The only place this was used was that if there were
any messages in the verbose queue when a verbose handler was registered,
all of the messages in the queue would be fed to it. So, I just made sure
that the console verbose handler and the network verbose handler (for
remote asterisk consoles) were registered before any verbose messages.
pbx_gtkconsole and pbx_kdeconsole will now lose a few verbose messages at
startup, but I didn't feel the performance hit of this message queue was
worth saving the initial verbose output for these very rarely used modules.
- I have removed the last three arguments to the verbose handlers, leaving
only the string itself because they aren't needed anymore. For example,
ast_verbose had some logic for telling the verbose handler to add
a newline if the buffer was completely full. Now that the buffer can grow
as needed, this doesn't matter anymore.
- remove unused function, ast_verbose_dmesg() which was to dispatch the
message queue
- Convert the list of verbose handlers to use the linked list macros.
- add missing newline characters to a few ast_verbose() calls
- convert the list of log channels to use the linked list macros in logger.c
- fix close_logger() to close all of the files it opened for logging
- update ast_log() to use a thread local dynamic string for its workspace
for preparing log messages instead of a buffer of size BUFSIZ (8kB on my
system) allocated on the stack. The dynamic string in this case is limited
to only growing to a maximum size of BUFSIZ.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39272 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-08 06:32:04 +00:00
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
0d2c199eca
This branch will resolve the bug 7635.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38652 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-01 19:03:32 +00:00
russell
a26d8b5351
suppress some compiler warnings ...
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38533 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-30 23:16:23 +00:00
russell
8c9bc54ab5
allow the gtk console to build and load
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38532 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-30 23:11:07 +00:00
russell
f395a52a02
Merge a new implementation of ast_inet_ntoa, our thread safe replacement for
...
inet_ntoa, which uses thread specific data (aka thread local storage) instead
of stack allocatted buffers to store the result.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38042 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-21 17:31:28 +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
kpfleming
51482ed964
more Makefile cleanup and consistency stuff
...
don't reuse LIBS variable from top-level Makefile (oops)
build Asterisk binary after subdirs (preparing for embedded modules)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37661 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-15 19:59:35 +00:00
kpfleming
ac83d7a807
Merged revisions 37417 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r37417 | kpfleming | 2006-07-12 08:18:21 -0500 (Wed, 12 Jul 2006) | 2 lines
get rid of some more printf's (although most of these were ifdef-ed out)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37418 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-12 13:29:10 +00:00
kpfleming
3bb01466ed
rename this file so it doesn't appear to be a module by itself
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37279 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-07 02:20:28 +00:00
kpfleming
98ae1f3092
various minor fixes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37277 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-07 00:48:40 +00:00
kpfleming
e319f5334e
make the build output less noisy (optional, can be controlled by the NOISY_BUILD variable in the top-level Makefile)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37273 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06 23:18:45 +00:00
murf
038813616f
OK, here is everything I changed to fix 7474:
...
1. ael/ael.flex -- the "fix" is here. In short, I modified the
pattern for the chars that break args, to exclude those chars that
would normally break args if they are preceded by a backslash. I did
this to 3 patterns where really, this kind of exclusion should be placed.
2. ael_lex.c is an updated output from lex.
3. the ael-test stuff -- instituted a regression test for this condition.
as ael_ntest9. The "n" in the name means that instead of just getting
the syntax/semantic errors and high-level output from aelparse, we
also want the compilation results to be in the comparison file.
(remove the -n option).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37255 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06 22:49:18 +00:00
kpfleming
84cc5e8bd0
move rules file to prepare for generic rules file
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37222 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06 21:04:28 +00:00
kpfleming
673e53a328
use new (separate) dependencies file from menuselect
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35895 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-25 08:50:14 +00:00
russell
f2629806ef
fix pbx_dundi build (issue #7424 , jstrom)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35875 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-25 01:25:52 +00:00
kpfleming
41af2260b7
The Eurostar Commit! (it's amazing how much work you can get done on a 150 minute train ride from Paris to London <G>)
...
support the new location for zaptel.h and tonezone.h
use the dependency information output by menuselect to build Makefile rules for each module for header files and libraries
combine the common rules into a top-level Makefile.rules file
remove all (now) unnecessary stuff from subdir Makefiles
change translator API so that the newpvt() callback returns an int instead of a pointer (it no longer allocates memory)
alphabetize --with-<foo> options in configure script
enhance Net-SNMP support in configure script to provide a --with-netsnmp option
fix support for --with-pq so that if pg-config is not found when --with-pq is specified, an error will be generated
add 'optional package' usage to modules now that menuselect can output it
allow res_snmp to build by default, since the new loader changes coming soon will solve the function naming problem (and users can disable it via menuselect anyway)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35832 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-24 19:43:31 +00:00
russell
9b1d7f9fa8
- convert the 'uninstall' target to use separate targets to process each
...
subdirectory instead of a for loop
- remove the FORCE target from the main Makefile and add the couple places
I used it to the .PHONY target. .PHONY does the same thing and is a built-in
more efficient way of doing it.
- add a bunch more targets to .PHONY ...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35503 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22 15:38:13 +00:00
russell
ddb0e59eb0
- specify that 'depend' is a .PHONY target
...
- use separate targets instead of a for loop for doing 'make depend' for
each sub directory
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35501 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22 15:08:08 +00:00
russell
0bb78235cb
- specify that 'all' is a .PHONY target
...
- add a copyright header to the build_tools Makefile
- remove 'depend' from the 'all' target in agi/ and utils/ since it is handled
by the main Makefile already
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35479 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22 14:09:18 +00:00
russell
b70a7c6a7c
add the 'clean', 'clean-depend', and 'dist-clean' targets as .PHONY targets
...
since they are targets that do not have resulting files and are never listed
as prerequisites to real targets. Using .PHONY in this manner improves make
performance by never having to check for resulting files.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35415 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22 11:27:03 +00:00
russell
31fff75d63
don't blow up in the sub Makefiles if menuselect.makeopts is not present. This
...
is valid in some cases, such as "make clean".
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34738 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-19 00:14:16 +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
russell
c521e83995
remove "depend" from the "all" targets in sub Makefiles. The main Makefile
...
already calls "make depend" for each of the subdirectories
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34497 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-16 16:54:00 +00:00
russell
f352569f79
don't use ast_copy_string when building for an external tool
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33423 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-10 04:41:34 +00:00
russell
44ee84a182
convert a few more uses of AST_CONFIG_MAX_PATH to use PATH_MAX
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33421 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-10 04:34:48 +00:00
kpfleming
926f67f682
various minor portability fixes (mostly from tholo for OpenBSD)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33350 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-09 20:26:25 +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
russell
745248fa58
remove the need to have to re-run make after a default menuselect.makeopts
...
file is generated. This allows a fresh checkout of asterisk to be built
and installed with the standard "./configure && make && make install".
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32798 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07 16:03:31 +00:00
kpfleming
bb0b421ea8
use module names, not file names, in menuselect
...
work around XML parsing bug in menuselect for default sounds package
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32407 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-05 20:46:27 +00:00
kpfleming
dd10dd3b7a
it's time... only enable global priority jumping if the config file says to do so
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32281 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-05 14:00:13 +00:00
file
be0f7def4c
Add Archive option to call files and add documentation on them. (issue #5426 reported by ezio - props to blitzrage for proof reading the documentation)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30299 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25 17:58:55 +00:00
russell
379b206f6b
on a clean, we have to clean out the ael directory too
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29731 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-23 17:09:51 +00:00
russell
da313b1c57
Make the new behavior where the timestamp is checked on the call file before
...
deleting it optional, defaulting to the old behavior, where it is always
deleted (issue #6750 , jcollie)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28832 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-19 22:51:44 +00:00
russell
d7bcf1c25c
only delete call files if the timestamp on the file is not in the future, so
...
that a call file can be reused (issue #6750 , patch by moy, committed patch is
slightly simplified)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28705 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-19 17:25:52 +00:00
rizzo
941aace414
change macro into a function, remove unused code.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26656 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 21:55:25 +00:00
rizzo
189f0cfda2
start cleanup indentation etc.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26655 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 21:12:55 +00:00
russell
d99b677f35
remove almost all of the checks of the result from ast_strdupa() or alloca().
...
As it turns out, all of these checks were useless, because alloca will never
return NULL.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26451 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 13:22:15 +00:00
kpfleming
f1898a71f1
various doxygen fixes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26170 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 16:24:07 +00:00
bweschke
0c3d4f7959
use pid_t instead of long for pid variables. #7099 (casper)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25488 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 12:32:44 +00:00
russell
6c10810c56
- use ast_calloc instead of malloc+memset
...
- conver one malloc to ast_malloc
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25356 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-07 15:19:13 +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
0d37c9585d
staticize the list heads from my recent conversions to list macros
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24139 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 04:40:09 +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
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
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
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
60df902cc1
move similar blocks close to each other to make similarities
...
more evident
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22727 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 01:35:52 +00:00
rizzo
e1712dc54e
normalize and simplify the code for keeping track of line and column number.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22726 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 01:27:07 +00:00
rizzo
1808e784cb
define some flex constants for character sets.
...
partly fix indentation and normalize code layout.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22725 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 01:07:24 +00:00
rizzo
d87a3b0d91
uncomment some functions in the flex code that were actually
...
used in the bison code - detected by making aelparse compile
again.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22702 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27 00:05:05 +00:00
rizzo
127c8f0535
use \t to indicate a tab, and fix indentation for
...
the whitespace-handling rules
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22680 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-26 23:36:05 +00:00
rizzo
4d578ce209
remove common blocks of code with a macro (waiting for a better
...
solution).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22679 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-26 23:18:03 +00:00