summaryrefslogtreecommitdiff
path: root/pbx/ael
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-04-26 22:56:18 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-04-26 22:56:18 +0000
commite141352fd98575aec0fa19e5f927f29df5226d56 (patch)
tree80fd983319f5f1d805361d5c774cae90d7d38bda /pbx/ael
parent2904c6956d3fa167951b499090f132c86526f8e4 (diff)
comment behaviour of pbcwhere in preparation for its use
in more places. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/ael')
-rw-r--r--pbx/ael/ael.flex9
-rw-r--r--pbx/ael/ael_lex.c9
2 files changed, 12 insertions, 6 deletions
diff --git a/pbx/ael/ael.flex b/pbx/ael/ael.flex
index 2dc15aa4f..746930c49 100644
--- a/pbx/ael/ael.flex
+++ b/pbx/ael/ael.flex
@@ -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 @@ void ael_yyset_column (int column_no , yyscan_t yyscanner);
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 @@ static int c_prevword(void)
}
#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;
diff --git a/pbx/ael/ael_lex.c b/pbx/ael/ael_lex.c
index 2e023e322..49087ddea 100644
--- a/pbx/ael/ael_lex.c
+++ b/pbx/ael/ael_lex.c
@@ -664,7 +664,7 @@ static yyconst flex_int16_t yy_chk[553] =
#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 @@ void ael_yyset_column (int column_no , yyscan_t yyscanner);
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 @@ static int c_prevword(void)
}
#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;