Luigi Rizzo
72b99a2817
Introduce ast_parse_arg() , a generic function to parse strings
...
in a consistent way. This is meant to replace the custom code
which is repeated all over the place in the various files when
parsing config files, CLI entries and other string information.
Right now the code supports parsing int32, uint32 and sockaddr_in with
optional default values and bound checks. It contains minimal error
checking, but that can be easily extended as the need arises.
Being a new API i am introducing this only in trunk, though I believe
that once the interface has been ironed out it might become a
worthwhile addition to 1.4 as well - basically, the first time
we will need to fix a piece of argument parsing code, we might as
well bring in this change and use the new API instead.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-17 14:32:15 +00:00
..
2007-02-07 23:56:46 +00:00
2007-02-18 15:03:42 +00:00
2007-07-06 16:30:32 +00:00
2007-06-14 22:09:20 +00:00
2007-01-23 00:11:32 +00:00
2007-06-14 19:39:12 +00:00
2007-06-14 19:39:12 +00:00
2007-05-24 22:07:50 +00:00
2007-05-24 22:07:50 +00:00
2006-08-21 02:11:39 +00:00
2007-05-24 22:07:50 +00:00
2007-01-23 00:11:32 +00:00
2007-07-10 14:51:09 +00:00
2007-07-08 21:01:28 +00:00
In regards to changes for 9508, expr2 system choking on floating point numbers, I'm adding this update to round out (no pun intended) and make this FP-capable version of the Expr2 stuff interoperate better with previous integer-only usage, by providing Functions syntax, with 20 builtin functions for floating pt to integer conversions, and some general floating point math routines that might commonly be used also. Along with this, I made it so if a function was not a builtin, it will try and find it in the ast_custom_function list, and if found, execute it and collect the results. Thus, you can call system functions like CDR(), CHANNEL(), etc, from within $\[..\] exprs, without having to wrap them in $\{...\} (curly brace) notation. Did a valgrind on the standalone and made sure there's no mem leaks. Looks good. Updated the docs, too.
2007-07-05 18:15:22 +00:00
2007-07-08 21:01:28 +00:00
2007-07-08 21:01:28 +00:00
2007-07-09 04:09:16 +00:00
2007-06-27 23:30:31 +00:00
2007-01-14 22:00:51 +00:00
2007-06-12 14:16:37 +00:00
2006-08-21 02:11:39 +00:00
2007-06-18 21:58:37 +00:00
2007-07-09 03:14:34 +00:00
2007-07-12 19:19:03 +00:00
2007-06-06 21:20:11 +00:00
2007-07-02 23:02:16 +00:00
2007-07-17 14:32:15 +00:00
2007-05-20 17:52:00 +00:00
2007-06-24 17:42:39 +00:00
2007-06-14 19:39:12 +00:00
2007-06-14 19:39:12 +00:00
2007-06-06 21:20:11 +00:00
2007-07-16 20:58:56 +00:00
2007-06-18 16:56:06 +00:00
2007-06-14 19:39:12 +00:00
2006-08-21 02:11:39 +00:00
2007-06-14 23:01:01 +00:00
2007-06-06 21:20:11 +00:00
2007-06-22 15:03:32 +00:00
2007-06-06 21:20:11 +00:00
2006-08-21 02:11:39 +00:00
2007-06-20 17:55:09 +00:00
2007-01-23 00:11:32 +00:00
2007-06-29 21:24:40 +00:00
2007-01-26 22:55:06 +00:00
2007-06-06 21:20:11 +00:00
2007-06-24 18:51:41 +00:00
2007-06-24 18:51:41 +00:00
2007-06-24 18:51:41 +00:00
2007-06-27 19:57:36 +00:00
2007-07-02 21:50:15 +00:00
2007-07-09 01:25:00 +00:00
2006-08-21 02:11:39 +00:00
2007-06-06 21:20:11 +00:00
2007-07-16 18:38:28 +00:00
2006-08-21 02:11:39 +00:00
2006-08-21 02:11:39 +00:00
2006-08-21 02:11:39 +00:00
2007-07-13 20:15:16 +00:00
2007-06-27 22:17:59 +00:00
2007-06-25 13:42:51 +00:00
2006-08-21 02:11:39 +00:00
2007-05-25 13:26:52 +00:00
2007-02-18 15:03:42 +00:00
2007-06-07 19:31:05 +00:00
2007-06-06 21:20:11 +00:00
2006-12-27 22:14:33 +00:00
2007-06-06 21:20:11 +00:00
2007-06-24 18:51:41 +00:00
2007-07-11 20:07:07 +00:00
2006-08-21 02:11:39 +00:00
2007-06-22 04:35:12 +00:00