From: Will Estes Date: Thu, 5 Sep 2002 13:26:03 +0000 (+0000) Subject: s/exit(1)/exit(EXIT_FAILURE) X-Git-Tag: flex-2-5-19~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5d7837b3662763f993a2bc3fd52015625d4a79b;p=flex s/exit(1)/exit(EXIT_FAILURE) --- diff --git a/scan.l b/scan.l index b88c675..5bb99a0 100644 --- a/scan.l +++ b/scan.l @@ -59,7 +59,7 @@ else \ { \ synerr(_("Input line too long\n")); \ - exit(1); \ + exit(EXIT_FAILURE); \ } \ return NAME; @@ -217,7 +217,7 @@ LEXOPT [aceknopr] else { synerr( _("Input line too long\n")); - exit(1); + exit(EXIT_FAILURE); } /* Skip trailing whitespace. */ for ( i = strlen( (char *) nmdef ) - 1; @@ -350,7 +350,7 @@ LEXOPT [aceknopr] else { synerr( _("Input line too long\n")); - exit(1); + exit(EXIT_FAILURE); } nmstr[strlen( nmstr ) - 1] = '\0'; return NAME; @@ -489,7 +489,7 @@ LEXOPT [aceknopr] else { synerr( _("Input line too long\n")); - exit(1); + exit(EXIT_FAILURE); } /* Check to see if we've already encountered this @@ -539,7 +539,7 @@ LEXOPT [aceknopr] else { synerr( _("Input line too long\n")); - exit(1); + exit(EXIT_FAILURE); } nmstr[yyleng - 2 - end_is_ws] = '\0'; /* chop trailing brace */