#include <stdio.h>
#include <stdlib.h>
+#include <cstdint>
#if defined(__clang__)
#pragma GCC diagnostic ignored "-Wmissing-braces"
}
# endif
yyr = yyt;
- if ( (int)yyt > (int)yycrank){
+ if ( (intptr_t)yyt > (intptr_t)yycrank){
yyt = yyr + yych;
if (yyt <= yytop && yyt->verify+yysvec == yystate){
if(yyt->advance+yysvec == YYLERR) /* error transitions */
}
}
# ifdef YYOPTIM
- else if((int)yyt < (int)yycrank) { /* r < yycrank */
+ else if((intptr_t)yyt < (intptr_t)yycrank) { /* r < yycrank */
yyt = yyr = yycrank+(yycrank-yyt);
# ifdef LEXDEBUG
if(debug)fprintf(yyout,"compressed state\n");
return ec_linenum;
}
-int ec_error ( char *s, char *text )
+int ec_error ( char const *s, char const *text )
{
printf ( "\nError at line %d: %s \"%s\"\n", ec_curline(), s, text );
return 0;