aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-04-05 08:21:47 +0000
committerNick Clifton <nickc@redhat.com>2003-04-05 08:21:47 +0000
commit3077f5d8b218d57c50f76de71bd274d09a2f945a (patch)
tree4186761e0db9c7eb94018081dcf680accf8d3980 /binutils
parent7df05f2b91d56bb6305625b73f0180187f4d66ff (diff)
downloadgdb-3077f5d8b218d57c50f76de71bd274d09a2f945a.zip
gdb-3077f5d8b218d57c50f76de71bd274d09a2f945a.tar.gz
gdb-3077f5d8b218d57c50f76de71bd274d09a2f945a.tar.bz2
Add -l for compatibility with wrc, and rc. Use the short option as a key for
long options that have a synonymous short option.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog25
-rw-r--r--binutils/doc/binutils.texi3
-rw-r--r--binutils/windres.c21
3 files changed, 27 insertions, 22 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 5fd0fe8..1aae5de 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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>
- * 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>
@@ -16,12 +23,12 @@
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>
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 91277a0..5f146b5 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -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.
+@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
@@ -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.
+@item -h
@item --help
Prints a usage summary.
+@item -V
@item --version
Prints the version number for @command{windres}.
diff --git a/binutils/windres.c b/binutils/windres.c
index 2e84617..620ca0a 100644
--- a/binutils/windres.c
+++ b/binutils/windres.c
@@ -106,22 +106,19 @@ static struct include_dir *include_dirs;
/* 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_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'},
- {"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'},
- {"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'},
@@ -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'},
- {"version", no_argument, 0, OPTION_VERSION},
+ {"version", no_argument, 0, 'V'},
{"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;
- 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)
@@ -904,7 +901,7 @@ main (argc, argv)
break;
- case OPTION_LANGUAGE:
+ case 'l':
language = strtol (optarg, (char **) NULL, 16);
break;
@@ -924,12 +921,10 @@ main (argc, argv)
case 'h':
case 'H':
- case OPTION_HELP:
usage (stdout, 0);
break;
case 'V':
- case OPTION_VERSION:
print_version ("windres");
break;