From 6e7b20ac6e8b1446e10418b911ea5c007d51d8ac Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 16 Jul 2007 05:00:28 +0000 Subject: File.java: Implement Comparable. * java/io/File.java: Implement Comparable. (compareTo): Removed. * java/io/File.h: Rebuilt. * classpath/lib/java/io/File.class: Rebuilt. From-SVN: r126670 --- libjava/prims.cc | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'libjava/prims.cc') diff --git a/libjava/prims.cc b/libjava/prims.cc index 706ab4b7a3e..5d3a260e9d0 100644 --- a/libjava/prims.cc +++ b/libjava/prims.cc @@ -1262,7 +1262,11 @@ parse_x_arg (char* option_string) { // FIXME: fail if impossible to share class data } - + else + { + // Unrecognized. + return -1; + } return 0; } @@ -1571,21 +1575,20 @@ parse_init_args (JvVMInitArgs* vm_args) JVMTI::enabled = true; continue; } - else if (vm_args->ignoreUnrecognized) + else { + int r = -1; if (option_string[0] == '_') - parse_x_arg (option_string + 1); - else if (! strncmp (option_string, "-X", 2)) - parse_x_arg (option_string + 2); - else + r = parse_x_arg (option_string + 1); + else if (! strncmp (option_string, "-X", 2)) + r = parse_x_arg (option_string + 2); + + if (r == -1 && ! vm_args->ignoreUnrecognized) { - unknown_option: fprintf (stderr, "libgcj: unknown option: %s\n", option_string); return -1; } } - else - goto unknown_option; } return 0; } -- cgit v1.2.1