[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / lex

Diff for /src/usr.bin/lex/main.c between version 1.18 and 1.19

version 1.18, 2015/11/19 22:52:40 version 1.19, 2015/11/19 22:58:59
Line 116 
Line 116 
  */   */
 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;
   
Line 1591 
Line 1581 
                 /* 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);

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19