Fix awk warning
Francois Gouget
fgouget at free.fr
Wed Nov 9 11:39:52 CST 2005
Running the dlls/dxerr8/make_errors script gives me the following
warning:
./make_errors
awk: errors.awk:54: warning: escape sequence `\'' treated as plain `''
This is with awk version 3.1.4. So this patch removes the unnecessary
backslash and that seems to make awk happy.
Changelog:
* dlls/dxerr8/errors.awk
dlls/dxerr9/errors.awk
Francois Gouget <fgouget at free.fr>
Remove extra backslash that was causing an awk warning.
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
Any sufficiently advanced bug is indistinguishable from a feature.
-- from some indian guy
-------------- next part --------------
Index: dlls/dxerr8/errors.awk
===================================================================
RCS file: /var/cvs/wine/dlls/dxerr8/errors.awk,v
retrieving revision 1.3
diff -u -p -r1.3 errors.awk
--- dlls/dxerr8/errors.awk 3 Oct 2005 10:15:15 -0000 1.3
+++ dlls/dxerr8/errors.awk 29 Oct 2005 23:22:32 -0000
@@ -51,7 +51,7 @@ BEGIN {
i = 1
len = length(array[word]) + 1
while (i < len) {
- if (substr(array[word],i,1) == "\'")
+ if (substr(array[word],i,1) == "'")
printf "'\\'',"
else
printf "'%s',", substr(array[word],i,1)
Index: dlls/dxerr9/errors.awk
===================================================================
RCS file: /var/cvs/wine/dlls/dxerr9/errors.awk,v
retrieving revision 1.3
diff -u -p -r1.3 errors.awk
--- dlls/dxerr9/errors.awk 3 Oct 2005 10:15:15 -0000 1.3
+++ dlls/dxerr9/errors.awk 29 Oct 2005 23:23:09 -0000
@@ -51,7 +51,7 @@ BEGIN {
i = 1
len = length(array[word]) + 1
while (i < len) {
- if (substr(array[word],i,1) == "\'")
+ if (substr(array[word],i,1) == "'")
printf "'\\'',"
else
printf "'%s',", substr(array[word],i,1)
More information about the wine-patches
mailing list