Commit 36d1a9a4 authored by unknown's avatar unknown

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


innobase/pars/pars0grm.y:
  Remove potential memory leak caused by redefined alloca, remove include of unistd.h to allow compilation on Windows
innobase/pars/pars0lex.l:
  Remove potential memory leak caused by redefined alloca, remove include of unistd.h to allow compilation on Windows
innobase/pars/pars0grm.c:
  Remove potential memory leak caused by redefined alloca, remove include of unistd.h to allow compilation on Windows
innobase/pars/lexyy.c:
  Remove potential memory leak caused by redefined alloca, remove include of unistd.h to allow compilation on Windows
parent 4b312a94
This diff is collapsed.
This diff is collapsed.
......@@ -13,8 +13,6 @@ the InnoDB parser.
%{
/* The value of the semantic attribute is a pointer to a query tree node
que_node_t */
#define YYSTYPE que_node_t*
#define alloca mem_alloc
#include <math.h>
......@@ -25,6 +23,8 @@ que_node_t */
#include "que0que.h"
#include "row0sel.h"
#define YYSTYPE que_node_t*
/* #define __STDC__ */
int
......
......@@ -26,6 +26,8 @@ How to make the InnoDB parser and lexer C files:
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
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