diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/mkerrcodes.awk | 20 |
2 files changed, 19 insertions, 7 deletions
@@ -1,3 +1,9 @@ +2005-06-16 Marcus Brinkmann <[email protected]> + + * src/mkerrcodes.awk: Fix comment. Allow any non-empty line to + start the processing, not only lines starting with numbers. + Guillaume Libersat <[email protected]> + 2005-01-05 Marcus Brinkmann <[email protected]> * configure.ac: Check for locale.h. diff --git a/src/mkerrcodes.awk b/src/mkerrcodes.awk index 55eac34..c8a413e 100644 --- a/src/mkerrcodes.awk +++ b/src/mkerrcodes.awk @@ -41,14 +41,20 @@ # data portions.) If your modification has such potential, you must delete # any notice of this special exception to the GPL from your modified version. -# This script outputs an intermediate file that contains the following block -# for each error value symbol in the input file (example for EINVAL): +# This script outputs an intermediate file that contains the following output: +# static struct +# { +# int err; +# const char *err_sym; +# } err_table[] = +# { +# { 7, "GPG_ERR_E2BIG" }, +# [...] +# }; # -# #ifdef EINVAL -# EINVAL GPG_ERR_EINVAL -# #endif +# The input file is a list of possible system errors, followed by a GPG_ERR_* name: # -# The input file is a list of possible system errors. +# 7 GPG_ERR_E2BIG # # Comments (starting with # and ending at the end of the line) are removed, # as is trailing whitespace. @@ -63,7 +69,7 @@ BEGIN { /^#/ { next; } header { - if ($0 ~ /^[ \t]*[0-9]+/) + if (! /^[ \t]*$/) { header = 0; |