From eb70e0e99e7cef87dbd3ca6f2560dfbb00daa8cd Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 16 Jun 2005 00:55:11 +0000 Subject: 2005-06-16 Marcus Brinkmann * src/mkerrcodes.awk: Fix comment. Allow any non-empty line to start the processing, not only lines starting with numbers. Guillaume Libersat --- ChangeLog | 6 ++++++ src/mkerrcodes.awk | 20 +++++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index a3d3aeb..38eb4ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-06-16 Marcus Brinkmann + + * src/mkerrcodes.awk: Fix comment. Allow any non-empty line to + start the processing, not only lines starting with numbers. + Guillaume Libersat + 2005-01-05 Marcus Brinkmann * 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; -- cgit v1.2.3