Commit d3d5d6b0 authored by marko@hundin.mysql.fi's avatar marko@hundin.mysql.fi

pars0lex.l:

  Add one more step to the patching instructions.
lexyy.c:
  Fix a Win64 type conversion warning
parent 4f966145
...@@ -616,6 +616,9 @@ How to make the InnoDB parser and lexer C files: ...@@ -616,6 +616,9 @@ How to make the InnoDB parser and lexer C files:
7. Add '#include "univ.i"' before #include <stdio.h> in lexyy.c 7. Add '#include "univ.i"' before #include <stdio.h> in lexyy.c
(Needed for AIX) (Needed for AIX)
8. Add a type cast to int to the assignment below the comment
'need more input.' (Removes a warning on Win64)
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.
*******************************************************/ *******************************************************/
...@@ -2114,7 +2117,7 @@ static int input() ...@@ -2114,7 +2117,7 @@ static int input()
else else
{ /* need more input */ { /* need more input */
int offset = yy_c_buf_p - yytext_ptr; int offset = (int) (yy_c_buf_p - yytext_ptr);
++yy_c_buf_p; ++yy_c_buf_p;
switch ( yy_get_next_buffer() ) switch ( yy_get_next_buffer() )
......
...@@ -31,6 +31,9 @@ How to make the InnoDB parser and lexer C files: ...@@ -31,6 +31,9 @@ How to make the InnoDB parser and lexer C files:
7. Add '#include "univ.i"' before #include <stdio.h> in lexyy.c 7. Add '#include "univ.i"' before #include <stdio.h> in lexyy.c
(Needed for AIX) (Needed for AIX)
8. Add a type cast to int to the assignment below the comment
'need more input.' (Removes a warning on Win64)
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