Commit 04cc7cde authored by unknown's avatar unknown
Browse files

pars0lex.l:

  Add one more step to the patching instructions.
lexyy.c:
  Fix a Win64 type conversion warning


innobase/pars/lexyy.c:
  Fix a Win64 type conversion warning
innobase/pars/pars0lex.l:
  Add one more step to the patching instructions.
parent db10586e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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
   (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
Linux.
*******************************************************/
@@ -2114,7 +2117,7 @@ static int input()

		else
			{ /* need more input */
			int offset = yy_c_buf_p - yytext_ptr;
			int offset = (int) (yy_c_buf_p - yytext_ptr);
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
+3 −0
Original line number Diff line number Diff line
@@ -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
   (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
Linux.
*******************************************************/