| print "/* Machine generated. Do not edit. */" |
| if (NF > 0 && length(array[1]) > 0) { |
| # save the first word is the names array |
| # create the WCHAR version of the name |
| printf "static const WCHAR name%dW[] = { ", lines |
| len = length(array[1]) + 1 |
| printf "'%s',", substr(array[1],i,1) |
| # create the CHAR version of the description |
| printf "static const CHAR description%dA[] = \"", lines |
| while (word < (NF + 1)) { |
| # create the WCHAR version of the description |
| printf "static const WCHAR description%dW[] = { ", lines |
| while (word < (NF + 1)) { |
| len = length(array[word]) + 1 |
| printf "'%s',", substr(array[word],i,1) |
| print "static const error_info info[] = {" |
| printf " { %s, \"%s\", name%dW, description%dA, description%dW },\n", |
| names[i], names[i], i, i,i |