[asterisk-commits] trunk r22656 - in /trunk/pbx/ael: ael.flex ael_lex.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Apr 26 15:56:19 MST 2006


Author: rizzo
Date: Wed Apr 26 17:56:18 2006
New Revision: 22656

URL: http://svn.digium.com/view/asterisk?rev=22656&view=rev
Log:
comment behaviour of pbcwhere in preparation for its use
in more places.


Modified:
    trunk/pbx/ael/ael.flex
    trunk/pbx/ael/ael_lex.c

Modified: trunk/pbx/ael/ael.flex
URL: http://svn.digium.com/view/asterisk/trunk/pbx/ael/ael.flex?rev=22656&r1=22655&r2=22656&view=diff
==============================================================================
--- trunk/pbx/ael/ael.flex (original)
+++ trunk/pbx/ael/ael.flex Wed Apr 26 17:56:18 2006
@@ -29,7 +29,7 @@
 #include "ael/ael.tab.h"
 #include "asterisk/ael_structs.h"
 
-static char pbcstack[400];
+static char pbcstack[400];	/* XXX missing size checks */
 static int pbcpos = 0;
 
 static int parencount = 0;
@@ -45,7 +45,7 @@
 int ael_yyparse (struct parse_io *);
 static void pbcpush(char x);
 static int pbcpop(char x);
-static void pbcwhere(char *text, int *line, int *col );
+static void pbcwhere(const char *text, int *line, int *col );
 
 struct stackelement {
 	char *fname;
@@ -563,7 +563,10 @@
 }
 #endif
 
-static void pbcwhere(char *text, int *line, int *col )
+/* compute the total number of lines and columns in the text
+ * passed as argument.
+ */
+static void pbcwhere(const char *text, int *line, int *col )
 {
 	int loc_line = 0;
 	int loc_col = 0;

Modified: trunk/pbx/ael/ael_lex.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/ael/ael_lex.c?rev=22656&r1=22655&r2=22656&view=diff
==============================================================================
--- trunk/pbx/ael/ael_lex.c (original)
+++ trunk/pbx/ael/ael_lex.c Wed Apr 26 17:56:18 2006
@@ -664,7 +664,7 @@
 #include "ael/ael.tab.h"
 #include "asterisk/ael_structs.h"
 
-static char pbcstack[400];
+static char pbcstack[400];	/* XXX missing size checks */
 static int pbcpos = 0;
 
 static int parencount = 0;
@@ -680,7 +680,7 @@
 int ael_yyparse (struct parse_io *);
 static void pbcpush(char x);
 static int pbcpop(char x);
-static void pbcwhere(char *text, int *line, int *col );
+static void pbcwhere(const char *text, int *line, int *col );
 
 struct stackelement {
 	char *fname;
@@ -2914,7 +2914,10 @@
 }
 #endif
 
-static void pbcwhere(char *text, int *line, int *col )
+/* compute the total number of lines and columns in the text
+ * passed as argument.
+ */
+static void pbcwhere(const char *text, int *line, int *col )
 {
 	int loc_line = 0;
 	int loc_col = 0;



More information about the asterisk-commits mailing list