Commit 233f10d3 by Tom Tromey Committed by Tom Tromey

* jcf-dump.c (main): Correctly recognize `--'-style long options.

From-SVN: r23607
parent 2a55b8e8
1998-11-11 Tom Tromey <tromey@cygnus.com>
* jcf-dump.c (main): Correctly recognize `--'-style long options.
Tue Nov 10 12:34:03 1998 Alexandre Petit-Bianco <apbianco@cygnus.com> Tue Nov 10 12:34:03 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
* class.c (is_compiled_class): Call safe_layout_class for class * class.c (is_compiled_class): Call safe_layout_class for class
......
...@@ -718,12 +718,13 @@ DEFUN(main, (argc, argv), ...@@ -718,12 +718,13 @@ DEFUN(main, (argc, argv),
{ {
char *arg = argv[argi]; char *arg = argv[argi];
/* Just let all arguments be given in either "-" or "--" form. */
if (arg[0] != '-' || ! strcmp (arg, "--")) if (arg[0] != '-' || ! strcmp (arg, "--"))
break; break;
if (arg[0] == '-') /* Just let all arguments be given in either "-" or "--" form. */
{ if (arg[1] == '-')
++arg;
if (strcmp (arg, "-o") == 0 && argi + 1 < argc) if (strcmp (arg, "-o") == 0 && argi + 1 < argc)
output_file = argv[++argi]; output_file = argv[++argi];
else if (strcmp (arg, "-classpath") == 0 && argi + 1 < argc) else if (strcmp (arg, "-classpath") == 0 && argi + 1 < argc)
...@@ -749,9 +750,6 @@ DEFUN(main, (argc, argv), ...@@ -749,9 +750,6 @@ DEFUN(main, (argc, argv),
exit (FATAL_EXIT_CODE); exit (FATAL_EXIT_CODE);
} }
} }
else
break;
}
if (argi == argc) if (argi == argc)
usage (); usage ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment