update lex output

This commit is contained in:
nethack.rankin
2002-01-13 04:16:04 +00:00
parent b31f25cc25
commit fbcf710621
2 changed files with 0 additions and 55 deletions

View File

@@ -481,33 +481,6 @@ void FDECL(init_yyout, (FILE *));
extern YYSTYPE yylval;
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

View File

@@ -750,34 +750,6 @@ int line_number = 1, colon_line_number = 1;
static char map[4096];
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