From 88f6744fb49ce9154fce11fe89dc060f29ada91b Mon Sep 17 00:00:00 2001 From: Will Estes Date: Thu, 5 Sep 2002 14:08:16 +0000 Subject: [PATCH] use FLEX_EXIT(), not exit() --- scan.l | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scan.l b/scan.l index 5bb99a0..c60b3a3 100644 --- a/scan.l +++ b/scan.l @@ -59,7 +59,7 @@ else \ { \ synerr(_("Input line too long\n")); \ - exit(EXIT_FAILURE); \ + FLEX_EXIT(EXIT_FAILURE); \ } \ return NAME; @@ -160,7 +160,7 @@ LEXOPT [aceknopr] else { synerr( _("Input line too long\n")); - exit(EXIT_FAILURE); + FLEX_EXIT(EXIT_FAILURE); } didadef = false; @@ -217,7 +217,7 @@ LEXOPT [aceknopr] else { synerr( _("Input line too long\n")); - exit(EXIT_FAILURE); + FLEX_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(EXIT_FAILURE); + FLEX_EXIT(EXIT_FAILURE); } nmstr[strlen( nmstr ) - 1] = '\0'; return NAME; @@ -489,7 +489,7 @@ LEXOPT [aceknopr] else { synerr( _("Input line too long\n")); - exit(EXIT_FAILURE); + FLEX_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(EXIT_FAILURE); + FLEX_EXIT(EXIT_FAILURE); } nmstr[yyleng - 2 - end_is_ws] = '\0'; /* chop trailing brace */ -- 2.40.0