version 1.18, 2015/11/19 22:52:40 |
version 1.19, 2015/11/19 22:58:59 |
|
|
*/ |
*/ |
char *program_name = "flex"; |
char *program_name = "flex"; |
|
|
#ifndef SHORT_FILE_NAMES |
|
static const char *outfile_template = "lex.%s.%s"; |
static const char *outfile_template = "lex.%s.%s"; |
static const char *backing_name = "lex.backup"; |
static const char *backing_name = "lex.backup"; |
static const char *tablesfile_template = "lex.%s.tables"; |
static const char *tablesfile_template = "lex.%s.tables"; |
#else |
|
static const char *outfile_template = "lex%s.%s"; |
|
static const char *backing_name = "lex.bck"; |
|
static const char *tablesfile_template = "lex%s.tbl"; |
|
#endif |
|
|
|
#ifdef MS_DOS |
|
extern unsigned _stklen = 16384; |
|
#endif |
|
|
|
/* From scan.l */ |
/* From scan.l */ |
extern FILE *yyout; |
extern FILE *yyout; |
|
|
|
|
/* In reentrant scanner, stdinit is handled in flex.skl. */ |
/* In reentrant scanner, stdinit is handled in flex.skl. */ |
if (do_stdinit) { |
if (do_stdinit) { |
if (reentrant) { |
if (reentrant) { |
outn("#ifdef VMS"); |
|
outn("#ifdef __VMS_POSIX"); |
|
outn("#define YY_STDINIT"); |
outn("#define YY_STDINIT"); |
outn("#endif"); |
|
outn("#else"); |
|
outn("#define YY_STDINIT"); |
|
outn("#endif"); |
|
} |
} |
outn("#ifdef VMS"); |
|
outn("#ifndef __VMS_POSIX"); |
|
outn(yy_nostdinit); |
|
outn("#else"); |
|
outn(yy_stdinit); |
outn(yy_stdinit); |
outn("#endif"); |
|
outn("#else"); |
|
outn(yy_stdinit); |
|
outn("#endif"); |
|
} else { |
} else { |
if (!reentrant) |
if (!reentrant) |
outn(yy_nostdinit); |
outn(yy_nostdinit); |