update lex output
This commit is contained in:
@@ -481,33 +481,6 @@ void FDECL(init_yyout, (FILE *));
|
|||||||
extern YYSTYPE yylval;
|
extern YYSTYPE yylval;
|
||||||
|
|
||||||
int line_number = 1;
|
int line_number = 1;
|
||||||
/*
|
|
||||||
* This is a hack required by Michael Hamel to get things
|
|
||||||
* working on the Mac.
|
|
||||||
*/
|
|
||||||
#if defined(applec) && !defined(FLEX_SCANNER) && !defined(FLEXHACK_SCANNER)
|
|
||||||
#undef input
|
|
||||||
#undef unput
|
|
||||||
#define unput(c) { yytchar = (c); if (yytchar == 10) yylineno--; *yysptr++ = yytchar; }
|
|
||||||
# ifndef YYNEWLINE
|
|
||||||
# define YYNEWLINE 10
|
|
||||||
# endif
|
|
||||||
|
|
||||||
char
|
|
||||||
input() /* Under MPW \n is chr(13)! Compensate for this. */
|
|
||||||
{
|
|
||||||
if (yysptr > yysbuf) return(*--yysptr);
|
|
||||||
else {
|
|
||||||
yytchar = getc(yyin);
|
|
||||||
if (yytchar == '\n') {
|
|
||||||
yylineno++;
|
|
||||||
return(YYNEWLINE);
|
|
||||||
}
|
|
||||||
if (yytchar == EOF) return(0);
|
|
||||||
else return(yytchar);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif /* applec && !FLEX_SCANNER && !FLEXHACK_SCANNER */
|
|
||||||
|
|
||||||
|
|
||||||
/* Macros after this point can all be overridden by user definitions in
|
/* Macros after this point can all be overridden by user definitions in
|
||||||
|
|||||||
@@ -750,34 +750,6 @@ int line_number = 1, colon_line_number = 1;
|
|||||||
static char map[4096];
|
static char map[4096];
|
||||||
static int map_cnt = 0;
|
static int map_cnt = 0;
|
||||||
|
|
||||||
/*
|
|
||||||
* This is a hack required by Michael Hamel to get things
|
|
||||||
* working on the Mac.
|
|
||||||
*/
|
|
||||||
#if defined(applec) && !defined(FLEX_SCANNER) && !defined(FLEXHACK_SCANNER)
|
|
||||||
#undef input
|
|
||||||
#undef unput
|
|
||||||
#define unput(c) { yytchar = (c); if (yytchar == 10) yylineno--; *yysptr++ = yytchar; }
|
|
||||||
# ifndef YYNEWLINE
|
|
||||||
# define YYNEWLINE 10
|
|
||||||
# endif
|
|
||||||
|
|
||||||
char
|
|
||||||
input() /* Under MPW \n is chr(13)! Compensate for this. */
|
|
||||||
{
|
|
||||||
if (yysptr > yysbuf) return(*--yysptr);
|
|
||||||
else {
|
|
||||||
yytchar = getc(yyin);
|
|
||||||
if (yytchar == '\n') {
|
|
||||||
yylineno++;
|
|
||||||
return(YYNEWLINE);
|
|
||||||
}
|
|
||||||
if (yytchar == EOF) return(0);
|
|
||||||
else return(yytchar);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif /* applec && !FLEX_SCANNER && !FLEXHACK_SCANNER */
|
|
||||||
|
|
||||||
#define MAPC 1
|
#define MAPC 1
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user