diff options
author | Roland McGrath <roland@gnu.org> | 1996-07-14 17:48:00 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-07-14 17:48:00 +0000 |
commit | a78b0f182749b9e22047193987dc537927009f52 (patch) | |
tree | b47253f15c92e1feaf36e1b95adbab51f9db5792 /sysdeps | |
parent | b1dbbaa48c188f78fa78f25cf405b8d95575de08 (diff) | |
download | glibc-a78b0f182749b9e22047193987dc537927009f52.zip glibc-a78b0f182749b9e22047193987dc537927009f52.tar.gz glibc-a78b0f182749b9e22047193987dc537927009f52.tar.bz2 |
* MakeTAGS (extract): Pass --add-comments=TRANS.
* sysdeps/gnu/errlist.awk: Write comments into the output with the
descriptive paragraphs from the manual preceded by TRANS.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/gnu/errlist.awk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sysdeps/gnu/errlist.awk b/sysdeps/gnu/errlist.awk index e6ca81a..c68e70d 100644 --- a/sysdeps/gnu/errlist.awk +++ b/sysdeps/gnu/errlist.awk @@ -21,6 +21,8 @@ # @comment POSIX.1: Function not implemented # @deftypevr Macro int ENOSYS # @comment errno 78 +# Descriptive paragraph... +# @end deftypevr BEGIN { alias["EWOULDBLOCK"] = "EAGAIN"; @@ -54,10 +56,23 @@ errnoh == 3 && $1 == "@comment" && $2 == "errno" \ printf "#if defined (%s) && %s != %s\n", e, e, alias[e]; else printf "#ifdef %s\n", e; + errnoh = 4; + desc=""; + next; + } +errnoh == 4 && $1 == "@end" && $2 == "deftypevr" \ + { + printf "/*%s */\n", desc; printf " [%s] = N_(\"%s\"),\n", e, etext; print "#endif"; + errnoh = 0; next; } +errnoh == 4 \ + { + # This magic tag in C comments gets them copied into libc.pot. + desc = desc "\nTRANS " $0; next + } { errnoh=0 } END { print " };"; |