From: Paul Eggert Date: Fri, 13 Dec 2002 07:54:02 +0000 (+0000) Subject: (getargs): Don't assume EOF == -1. X-Git-Tag: BISON-1_875~99 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/08721544d1cdc1214848f38a810e65e2bfb564fa (getargs): Don't assume EOF == -1. --- diff --git a/src/getargs.c b/src/getargs.c index 182b9f3b..de468e55 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -1,4 +1,5 @@ -/* Parse command line arguments for bison. +/* Parse command line arguments for Bison. + Copyright (C) 1984, 1986, 1989, 1992, 2000, 2001, 2002 Free Software Foundation, Inc. @@ -320,7 +321,8 @@ getargs (int argc, char *argv[]) { int c; - while ((c = getopt_long (argc, argv, short_options, long_options, NULL)) != EOF) + while ((c = getopt_long (argc, argv, short_options, long_options, NULL)) + != -1) switch (c) { case 0: