1 --- query-orig.c 2010-10-01 12:56:20.000000000 -0400
2 +++ query.c 2010-10-01 12:56:20.000000000 -0400
3 @@ -538,7 +538,7 @@ YY_LOCAL(int) yyrefill(void)
4 while (yybuflen - yypos < 512)
7 - yybuf= realloc(yybuf, yybuflen);
8 + yybuf= xrealloc(yybuf, yybuflen);
10 YY_INPUT((yybuf + yypos), yyn, (yybuflen - yypos));
12 @@ -603,7 +603,7 @@ YY_LOCAL(void) yyDo(yyaction action, int
13 while (yythunkpos >= yythunkslen)
16 - yythunks= realloc(yythunks, sizeof(yythunk) * yythunkslen);
17 + yythunks= xrealloc(yythunks, sizeof(yythunk) * yythunkslen);
19 yythunks[yythunkpos].begin= begin;
20 yythunks[yythunkpos].end= end;
21 @@ -621,7 +621,7 @@ YY_LOCAL(int) yyText(int begin, int end)
22 while (yytextlen < (yyleng - 1))
25 - yytext= realloc(yytext, yytextlen);
26 + yytext= xrealloc(yytext, yytextlen);
28 memcpy(yytext, yybuf + begin, yyleng);
30 @@ -1159,13 +1159,13 @@ YY_PARSE(int) YYPARSEFROM(yyrule yystart
34 - yybuf= malloc(yybuflen);
35 + yybuf= xmalloc(yybuflen);
37 - yytext= malloc(yytextlen);
38 + yytext= xmalloc(yytextlen);
40 - yythunks= malloc(sizeof(yythunk) * yythunkslen);
41 + yythunks= xmalloc(sizeof(yythunk) * yythunkslen);
43 - yyvals= malloc(sizeof(YYSTYPE) * yyvalslen);
44 + yyvals= xmalloc(sizeof(YYSTYPE) * yyvalslen);
45 yybegin= yyend= yypos= yylimit= yythunkpos= 0;
47 yybegin= yyend= yypos;