]> granicus.if.org Git - flex/commitdiff
added YY_EXIT_FAILURE
authorVern Paxson <vern@ee.lbl.gov>
Sat, 4 Mar 1995 16:15:43 +0000 (16:15 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Sat, 4 Mar 1995 16:15:43 +0000 (16:15 +0000)
flex.skl

index 98c3fbe66fb7caf92a60e398564528facde10172..db11d904943584c37321656ab990451d34a3c002 100644 (file)
--- a/flex.skl
+++ b/flex.skl
@@ -1354,6 +1354,9 @@ int yyFlexLexer::yy_top_state()
        }
 #endif
 
+#ifndef YY_EXIT_FAILURE
+#define YY_EXIT_FAILURE 2
+#endif
 
 %-
 #ifdef YY_USE_PROTOS
@@ -1364,7 +1367,7 @@ char msg[];
 #endif
        {
        (void) fprintf( stderr, "%s\n", msg );
-       exit( 1 );
+       exit( YY_EXIT_FAILURE );
        }
 
 %+
@@ -1372,7 +1375,7 @@ char msg[];
 void yyFlexLexer::LexerError( const char msg[] )
        {
        cerr << msg << '\n';
-       exit( 1 );
+       exit( YY_EXIT_FAILURE );
        }
 %*