pars0lex.l:
Add one more step to the patching instructions. lexyy.c: Fix a Win64 type conversion warning
This commit is contained in:
parent
4f966145b0
commit
d3d5d6b075
@ -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()
|
|||||||
|
|
||||||
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:
|
|||||||
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.
|
||||||
*******************************************************/
|
*******************************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user