#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;
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;
}
#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;
#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;
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;
}
#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;