[Asterisk-cvs] asterisk/funcs func_cdr.c, 1.7, 1.8 func_db.c, 1.7, 1.8 func_math.c, 1.3, 1.4 func_md5.c, 1.6, 1.7

kpfleming kpfleming
Thu Nov 3 16:27:26 CST 2005


Update of /usr/cvsroot/asterisk/funcs
In directory mongoose.digium.com:/tmp/cvs-serv1836/funcs

Modified Files:
	func_cdr.c func_db.c func_math.c func_md5.c 
Log Message:
major update to arg/option parsing APIs and documentation


Index: func_cdr.c
===================================================================
RCS file: /usr/cvsroot/asterisk/funcs/func_cdr.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- func_cdr.c	24 Oct 2005 20:12:06 -0000	1.7
+++ func_cdr.c	3 Nov 2005 21:19:10 -0000	1.8
@@ -52,7 +52,7 @@
 		return NULL;
 
 	mydata = ast_strdupa(data);
-	argc = ast_separate_app_args(mydata, '|', argv, sizeof(argv) / sizeof(argv[0]));
+	argc = ast_app_separate_args(mydata, '|', argv, sizeof(argv) / sizeof(argv[0]));
 
 	/* check for a trailing flags argument */
 	if (argc > 1) {
@@ -77,7 +77,7 @@
 		return;
 	
 	mydata = ast_strdupa(data);
-	argc = ast_separate_app_args(mydata, '|', argv, sizeof(argv) / sizeof(argv[0]));
+	argc = ast_app_separate_args(mydata, '|', argv, sizeof(argv) / sizeof(argv[0]));
 
 	/* check for a trailing flags argument */
 	if (argc > 1) {

Index: func_db.c
===================================================================
RCS file: /usr/cvsroot/asterisk/funcs/func_db.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- func_db.c	24 Oct 2005 20:12:06 -0000	1.7
+++ func_db.c	3 Nov 2005 21:19:10 -0000	1.8
@@ -55,7 +55,7 @@
 	}
 
 	args = ast_strdupa(data);
-	argc = ast_separate_app_args(args, '/', argv, sizeof(argv) / sizeof(argv[0]));
+	argc = ast_app_separate_args(args, '/', argv, sizeof(argv) / sizeof(argv[0]));
 	
 	if (argc > 1) {
 		family = argv[0];
@@ -88,7 +88,7 @@
 	}
 
 	args = ast_strdupa(data);
-	argc = ast_separate_app_args(args, '/', argv, sizeof(argv) / sizeof(argv[0]));
+	argc = ast_app_separate_args(args, '/', argv, sizeof(argv) / sizeof(argv[0]));
 	
 	if (argc > 1) {
 		family = argv[0];
@@ -134,7 +134,7 @@
 	}
 
 	args = ast_strdupa(data);
-	argc = ast_separate_app_args(args, '/', argv, sizeof(argv) / sizeof(argv[0]));
+	argc = ast_app_separate_args(args, '/', argv, sizeof(argv) / sizeof(argv[0]));
 	
 	if (argc > 1) {
 		family = argv[0];

Index: func_math.c
===================================================================
RCS file: /usr/cvsroot/asterisk/funcs/func_math.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- func_math.c	24 Oct 2005 20:12:06 -0000	1.3
+++ func_math.c	3 Nov 2005 21:19:10 -0000	1.4
@@ -84,7 +84,7 @@
 	}
 
 	args = ast_strdupa(data);	
-	argc = ast_separate_app_args(args, '|', argv, sizeof(argv) / sizeof(argv[0]));
+	argc = ast_app_separate_args(args, '|', argv, sizeof(argv) / sizeof(argv[0]));
 
 	if (argc < 1) {
 		ast_log(LOG_WARNING, "Syntax: Math(<number1><op><number 2>[,<type_of_result>]) - missing argument!\n");

Index: func_md5.c
===================================================================
RCS file: /usr/cvsroot/asterisk/funcs/func_md5.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- func_md5.c	24 Oct 2005 20:12:06 -0000	1.6
+++ func_md5.c	3 Nov 2005 21:19:10 -0000	1.7
@@ -64,7 +64,7 @@
 	}
 
 	args = ast_strdupa(data);	
-	argc = ast_separate_app_args(args, '|', argv, sizeof(argv) / sizeof(argv[0]));
+	argc = ast_app_separate_args(args, '|', argv, sizeof(argv) / sizeof(argv[0]));
 
 	if (argc < 2) {
 		ast_log(LOG_WARNING, "Syntax: CHECK_MD5(<digest>,<data>) - missing argument!\n");




More information about the svn-commits mailing list