mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
(getargs): Don't assume EOF == -1.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user