lexyy.c, pars0grm.c, pars0lex.l, pars0grm.y:

  Remove potential memory leak caused by redefined alloca, remove include of unistd.h to allow compilation on Windows
parent df5d7a5b
This diff is collapsed.
This diff is collapsed.
...@@ -13,8 +13,6 @@ the InnoDB parser. ...@@ -13,8 +13,6 @@ the InnoDB parser.
%{ %{
/* The value of the semantic attribute is a pointer to a query tree node /* The value of the semantic attribute is a pointer to a query tree node
que_node_t */ que_node_t */
#define YYSTYPE que_node_t*
#define alloca mem_alloc
#include <math.h> #include <math.h>
...@@ -25,6 +23,8 @@ que_node_t */ ...@@ -25,6 +23,8 @@ que_node_t */
#include "que0que.h" #include "que0que.h"
#include "row0sel.h" #include "row0sel.h"
#define YYSTYPE que_node_t*
/* #define __STDC__ */ /* #define __STDC__ */
int int
......
...@@ -26,6 +26,8 @@ How to make the InnoDB parser and lexer C files: ...@@ -26,6 +26,8 @@ How to make the InnoDB parser and lexer C files:
5. Rename lex.yy.c to lexyy.c. 5. Rename lex.yy.c to lexyy.c.
6. Remove the #include of unistd.h from about line 2500 of lexyy.c
These instructions seem to work at least with bison-1.28 and flex-2.5.4 on These instructions seem to work at least with bison-1.28 and flex-2.5.4 on
Linux. Linux.
*******************************************************/ *******************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment