wrc: Fix the spelling of the --endianness option.

Francois Gouget fgouget at free.fr
Wed Aug 24 08:22:52 CDT 2011


---

This is the last 'endianness' patch. The problem is that it impacts a 
command line option. It's not used anywhere that I could see and I doubt 
it's really used by third parties. So I did not add backward 
compatibility code for the old spelling.

But I certainly could if it's deemed necessary.


 tools/wrc/wrc.c      |    8 ++++----
 tools/wrc/wrc.man.in |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/wrc/wrc.c b/tools/wrc/wrc.c
index b1418c1..2eb5380 100644
--- a/tools/wrc/wrc.c
+++ b/tools/wrc/wrc.c
@@ -56,7 +56,7 @@ static const char usage[] =
 	"   -D, --define id[=val]      Define preprocessor identifier id=val\n"
 	"   --debug=nn                 Set debug level to 'nn'\n"
 	"   -E                         Preprocess only\n"
-	"   --endianess=e              Set output byte-order e={n[ative], l[ittle], b[ig]}\n"
+	"   --endianness=e             Set output byte-order e={n[ative], l[ittle], b[ig]}\n"
 	"                              (win32 only; default is " ENDIAN "-endian)\n"
 	"   -F TARGET                  Synonym for -b for compatibility with windres\n"
 	"   -fo FILE                   Synonym for -o for compatibility with windres\n"
@@ -176,7 +176,7 @@ enum long_options_values
     LONG_OPT_PREPROCESSOR,
     LONG_OPT_VERSION,
     LONG_OPT_DEBUG,
-    LONG_OPT_ENDIANESS,
+    LONG_OPT_ENDIANNESS,
     LONG_OPT_PEDANTIC,
     LONG_OPT_VERIFY_TRANSL
 };
@@ -186,7 +186,7 @@ static const char short_options[] =
 static const struct option long_options[] = {
 	{ "debug", 1, NULL, LONG_OPT_DEBUG },
 	{ "define", 1, NULL, 'D' },
-	{ "endianess", 1, NULL, LONG_OPT_ENDIANESS },
+	{ "endianness", 1, NULL, LONG_OPT_ENDIANNESS },
 	{ "help", 0, NULL, 'h' },
 	{ "include-dir", 1, NULL, 'I' },
 	{ "input", 1, NULL, 'i' },
@@ -396,7 +396,7 @@ int main(int argc,char *argv[])
 		case LONG_OPT_DEBUG:
 			debuglevel = strtol(optarg, NULL, 0);
 			break;
-		case LONG_OPT_ENDIANESS:
+		case LONG_OPT_ENDIANNESS:
 			switch(optarg[0])
 			{
 			case 'n':
diff --git a/tools/wrc/wrc.man.in b/tools/wrc/wrc.man.in
index 16ed347..cfdf800 100644
--- a/tools/wrc/wrc.man.in
+++ b/tools/wrc/wrc.man.in
@@ -37,7 +37,7 @@ Set debug level to \fInn\fR. The value is a bitmask consisting of
 1=verbose, 2=dump internals, 4=resource parser trace, 8=preprocessor
 messages, 16=preprocessor scanner and 32=preprocessor parser trace.
 .TP
-.I \fB\-\-endianess\fR=\fIe\fR
+.I \fB\-\-endianness\fR=\fIe\fR
 Win32 only; set output byte\-ordering, where \fIe\fR is one of n[ative],
 l[ittle] or b[ig].  Only resources in source-form can be reordered. Native
 ordering depends on the system on which \fBwrc\fR was built. You can see
-- 
1.7.5.4




More information about the wine-patches mailing list