Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8a4e04a4
Commit
8a4e04a4
authored
Oct 03, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Oct 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for errors with more than one name.
parent
0a7de6a7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
12 deletions
+36
-12
errors.awk
dlls/dxerr8/errors.awk
+18
-6
errors.awk
dlls/dxerr9/errors.awk
+18
-6
No files found.
dlls/dxerr8/errors.awk
View file @
8a4e04a4
...
...
@@ -9,22 +9,33 @@ BEGIN {
if
(
NF
>
0
&&
length
(
array
[
1
])
>
0
)
{
lines
++
# save the first word is the names array
# save the first word (or '&' seperated list of words) in the names array
if
(
array
[
2
]
==
"&"
)
{
if
(
array
[
4
]
==
"&"
)
{
names
[
lines
]
=
array
[
1
]
" "
array
[
2
]
" "
array
[
3
]
" "
array
[
4
]
" "
array
[
5
]
start
=
6
}
else
{
names
[
lines
]
=
array
[
1
]
" "
array
[
2
]
" "
array
[
3
]
start
=
4
}
}
else
{
names
[
lines
]
=
array
[
1
]
start
=
2
}
# create the WCHAR version of the name
printf
"static const WCHAR name%dW[] = { "
,
lines
i
=
1
len
=
length
(
array
[
1
])
+
1
len
=
length
(
names
[
lines
])
+
1
while
(
i
<
len
)
{
printf
"'%s',"
,
substr
(
array
[
1
],
i
,
1
)
printf
"'%s',"
,
substr
(
names
[
lines
],
i
,
1
)
i
++
}
print
"0 };"
# create the CHAR version of the description
printf
"static const CHAR description%dA[] = \""
,
lines
word
=
2
word
=
start
while
(
word
<
(
NF
+
1
))
{
printf
"%s"
,
array
[
word
]
if
(
word
<
NF
)
...
...
@@ -35,7 +46,7 @@ BEGIN {
# create the WCHAR version of the description
printf
"static const WCHAR description%dW[] = { "
,
lines
word
=
2
word
=
start
while
(
word
<
(
NF
+
1
))
{
i
=
1
len
=
length
(
array
[
word
])
+
1
...
...
@@ -59,8 +70,9 @@ END {
i
=
1
while
(
i
<=
lines
)
{
split
(
names
[
i
],
words
,
FS
)
printf
" { %s, \"%s\", name%dW, description%dA, description%dW },\n"
,
names
[
i
],
names
[
i
],
i
,
i
,
i
words
[
1
],
names
[
i
],
i
,
i
,
i
i
++
}
...
...
dlls/dxerr9/errors.awk
View file @
8a4e04a4
...
...
@@ -9,22 +9,33 @@ BEGIN {
if
(
NF
>
0
&&
length
(
array
[
1
])
>
0
)
{
lines
++
# save the first word is the names array
# save the first word (or '&' seperated list of words) in the names array
if
(
array
[
2
]
==
"&"
)
{
if
(
array
[
4
]
==
"&"
)
{
names
[
lines
]
=
array
[
1
]
" "
array
[
2
]
" "
array
[
3
]
" "
array
[
4
]
" "
array
[
5
]
start
=
6
}
else
{
names
[
lines
]
=
array
[
1
]
" "
array
[
2
]
" "
array
[
3
]
start
=
4
}
}
else
{
names
[
lines
]
=
array
[
1
]
start
=
2
}
# create the WCHAR version of the name
printf
"static const WCHAR name%dW[] = { "
,
lines
i
=
1
len
=
length
(
array
[
1
])
+
1
len
=
length
(
names
[
lines
])
+
1
while
(
i
<
len
)
{
printf
"'%s',"
,
substr
(
array
[
1
],
i
,
1
)
printf
"'%s',"
,
substr
(
names
[
lines
],
i
,
1
)
i
++
}
print
"0 };"
# create the CHAR version of the description
printf
"static const CHAR description%dA[] = \""
,
lines
word
=
2
word
=
start
while
(
word
<
(
NF
+
1
))
{
printf
"%s"
,
array
[
word
]
if
(
word
<
NF
)
...
...
@@ -35,7 +46,7 @@ BEGIN {
# create the WCHAR version of the description
printf
"static const WCHAR description%dW[] = { "
,
lines
word
=
2
word
=
start
while
(
word
<
(
NF
+
1
))
{
i
=
1
len
=
length
(
array
[
word
])
+
1
...
...
@@ -59,8 +70,9 @@ END {
i
=
1
while
(
i
<=
lines
)
{
split
(
names
[
i
],
words
,
FS
)
printf
" { %s, \"%s\", name%dW, description%dA, description%dW },\n"
,
names
[
i
],
names
[
i
],
i
,
i
,
i
words
[
1
],
names
[
i
],
i
,
i
,
i
i
++
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment