2 print "/* Machine generated. Do not edit. */"
9 if (NF > 0 && length(array[1]) > 0) {
12 # save the first word is the names array
13 names[lines] = array[1]
15 # create the WCHAR version of the name
16 printf "static const WCHAR name%dW[] = { ", lines
18 len = length(array[1]) + 1
20 printf "'%s',", substr(array[1],i,1)
25 # create the CHAR version of the description
26 printf "static const CHAR description%dA[] = \"", lines
28 while (word < (NF + 1)) {
29 printf "%s", array[word]
36 # create the WCHAR version of the description
37 printf "static const WCHAR description%dW[] = { ", lines
39 while (word < (NF + 1)) {
41 len = length(array[word]) + 1
43 printf "'%s',", substr(array[word],i,1)
55 print "static const error_info info[] = {"
59 printf " { %s, \"%s\", name%dW, description%dA, description%dW },\n",
60 names[i], names[i], i, i,i