Add -l for compatibility with wrc, and rc. Use the short option as a key for
authorNick Clifton <nickc@redhat.com>
Sat, 5 Apr 2003 08:21:47 +0000 (08:21 +0000)
committerNick Clifton <nickc@redhat.com>
Sat, 5 Apr 2003 08:21:47 +0000 (08:21 +0000)
long options that have a synonymous short option.

binutils/ChangeLog
binutils/doc/binutils.texi
binutils/windres.c

index 5fd0fe8a61c2d6ec3e458a63ddfea216dff8f7f8..1aae5dedf2343cb3505b19fac83c33adee6dfc71 100644 (file)
@@ -1,8 +1,15 @@
+2003-04-05  Dimitrie O. Paun <dpaun@rogers.com>
+
+       * windres.c: Add -l for compatibility with wrc, and rc.
+       Use the short option as a key for long options that have
+       a synonymous short option.
+       * doc/binutils.texi: Added -l to the list of options.
+
 2003-04-03  Dimitrie O. Paun <dpaun@rogers.com>
 
 2003-04-03  Dimitrie O. Paun <dpaun@rogers.com>
 
-        * windres.c: Add -U for compatibility with wrc, rc, and cpp.
-        (main): Just pass the -U option down to the preprocessor.
-        * doc/binutils.texi: Added -U to the list of options.
+       * windres.c: Add -U for compatibility with wrc, rc, and cpp.
+       (main): Just pass the -U option down to the preprocessor.
+       * doc/binutils.texi: Added -U to the list of options.
 
 2003-04-01  Dimitrie O. Paun <dpaun@rogers.com>
 
 
 2003-04-01  Dimitrie O. Paun <dpaun@rogers.com>
 
 
 2003-04-01  Bob Wilson  <bob.wilson@acm.org>
 
 
 2003-04-01  Bob Wilson  <bob.wilson@acm.org>
 
-        * readelf.c: Include "elf/xtensa.h".
-        (guess_is_rela): Add EM_XTENSA and EM_XTENSA_OLD to list of
-        targets that use RELA relocations.
-        (dump_relocations): Call elf_xtensa_reloc_type for
-        EM_XTENSA and EM_XTENSA_OLD.
-        (get_machine_name): Handle EM_XTENSA and EM_XTENSA_OLD.
+       * readelf.c: Include "elf/xtensa.h".
+       (guess_is_rela): Add EM_XTENSA and EM_XTENSA_OLD to list of
+       targets that use RELA relocations.
+       (dump_relocations): Call elf_xtensa_reloc_type for
+       EM_XTENSA and EM_XTENSA_OLD.
+       (get_machine_name): Handle EM_XTENSA and EM_XTENSA_OLD.
 
 2003-04-01  Nick Clifton  <nickc@redhat.com>
 
 
 2003-04-01  Nick Clifton  <nickc@redhat.com>
 
index 91277a04961318fe0a76d8b2e0c9a398fcec0173..5f146b53eb2bfe9e8a0399e9a22af878fb2b85a2 100644 (file)
@@ -2626,6 +2626,7 @@ Ignored for compatibility with rc.
 Enable verbose mode.  This tells you what the preprocessor is if you
 didn't specify one.
 
 Enable verbose mode.  This tells you what the preprocessor is if you
 didn't specify one.
 
+@item -l @var{val}
 @item --language @var{val}
 Specify the default language to use when reading an @code{rc} file.
 @var{val} should be a hexadecimal language code.  The low eight bits are
 @item --language @var{val}
 Specify the default language to use when reading an @code{rc} file.
 @var{val} should be a hexadecimal language code.  The low eight bits are
@@ -2642,9 +2643,11 @@ go the console).
 Use popen, not a temporary file, to read the output of the preprocessor.
 This is the default behaviour.
 
 Use popen, not a temporary file, to read the output of the preprocessor.
 This is the default behaviour.
 
+@item -h
 @item --help
 Prints a usage summary.
 
 @item --help
 Prints a usage summary.
 
+@item -V
 @item --version
 Prints the version number for @command{windres}.
 
 @item --version
 Prints the version number for @command{windres}.
 
index 2e84617bee1c82f649a174aea3135dcdf18eb4ed..620ca0a7d80c79dd0fd01f05f6803a4e9ad0f521 100644 (file)
@@ -106,22 +106,19 @@ static struct include_dir *include_dirs;
 
 /* 150 isn't special; it's just an arbitrary non-ASCII char value.  */
 
 
 /* 150 isn't special; it's just an arbitrary non-ASCII char value.  */
 
-#define OPTION_HELP            150
-#define OPTION_INCLUDE_DIR     (OPTION_HELP + 1)
-#define OPTION_LANGUAGE                (OPTION_INCLUDE_DIR + 1)
-#define OPTION_PREPROCESSOR    (OPTION_LANGUAGE + 1)
+#define OPTION_INCLUDE_DIR     150
+#define OPTION_PREPROCESSOR    (OPTION_INCLUDE_DIR + 1)
 #define OPTION_USE_TEMP_FILE   (OPTION_PREPROCESSOR + 1)
 #define OPTION_NO_USE_TEMP_FILE        (OPTION_USE_TEMP_FILE + 1)
 #define OPTION_USE_TEMP_FILE   (OPTION_PREPROCESSOR + 1)
 #define OPTION_NO_USE_TEMP_FILE        (OPTION_USE_TEMP_FILE + 1)
-#define OPTION_VERSION         (OPTION_NO_USE_TEMP_FILE + 1)
-#define OPTION_YYDEBUG         (OPTION_VERSION + 1)
+#define OPTION_YYDEBUG         (OPTION_NO_USE_TEMP_FILE + 1)
 
 static const struct option long_options[] =
 {
   {"define", required_argument, 0, 'D'},
 
 static const struct option long_options[] =
 {
   {"define", required_argument, 0, 'D'},
-  {"help", no_argument, 0, OPTION_HELP},
+  {"help", no_argument, 0, 'h'},
   {"include-dir", required_argument, 0, OPTION_INCLUDE_DIR},
   {"input-format", required_argument, 0, 'I'},
   {"include-dir", required_argument, 0, OPTION_INCLUDE_DIR},
   {"input-format", required_argument, 0, 'I'},
-  {"language", required_argument, 0, OPTION_LANGUAGE},
+  {"language", required_argument, 0, 'l'},
   {"output-format", required_argument, 0, 'O'},
   {"preprocessor", required_argument, 0, OPTION_PREPROCESSOR},
   {"target", required_argument, 0, 'F'},
   {"output-format", required_argument, 0, 'O'},
   {"preprocessor", required_argument, 0, OPTION_PREPROCESSOR},
   {"target", required_argument, 0, 'F'},
@@ -129,7 +126,7 @@ static const struct option long_options[] =
   {"use-temp-file", no_argument, 0, OPTION_USE_TEMP_FILE},
   {"no-use-temp-file", no_argument, 0, OPTION_NO_USE_TEMP_FILE},
   {"verbose", no_argument, 0, 'v'},
   {"use-temp-file", no_argument, 0, OPTION_USE_TEMP_FILE},
   {"no-use-temp-file", no_argument, 0, OPTION_NO_USE_TEMP_FILE},
   {"verbose", no_argument, 0, 'v'},
-  {"version", no_argument, 0, OPTION_VERSION},
+  {"version", no_argument, 0, 'V'},
   {"yydebug", no_argument, 0, OPTION_YYDEBUG},
   {0, no_argument, 0, 0}
 };
   {"yydebug", no_argument, 0, OPTION_YYDEBUG},
   {0, no_argument, 0, 0}
 };
@@ -815,7 +812,7 @@ main (argc, argv)
   language = 0x409;   /* LANG_ENGLISH, SUBLANG_ENGLISH_US.  */
   use_temp_file = 0;
 
   language = 0x409;   /* LANG_ENGLISH, SUBLANG_ENGLISH_US.  */
   use_temp_file = 0;
 
-  while ((c = getopt_long (argc, argv, "i:o:I:O:F:D:U:rhHvV", long_options,
+  while ((c = getopt_long (argc, argv, "i:l:o:I:O:F:D:U:rhHvV", long_options,
                           (int *) 0)) != EOF)
     {
       switch (c)
                           (int *) 0)) != EOF)
     {
       switch (c)
@@ -904,7 +901,7 @@ main (argc, argv)
 
          break;
 
 
          break;
 
-       case OPTION_LANGUAGE:
+       case 'l':
          language = strtol (optarg, (char **) NULL, 16);
          break;
 
          language = strtol (optarg, (char **) NULL, 16);
          break;
 
@@ -924,12 +921,10 @@ main (argc, argv)
 
        case 'h':
        case 'H':
 
        case 'h':
        case 'H':
-       case OPTION_HELP:
          usage (stdout, 0);
          break;
 
        case 'V':
          usage (stdout, 0);
          break;
 
        case 'V':
-       case OPTION_VERSION:
          print_version ("windres");
          break;
 
          print_version ("windres");
          break;
 
This page took 0.030693 seconds and 4 git commands to generate.