Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
+ * 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.
+
* elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
(_dl_start): Move RESOLVE defn inside this function and #include
"dynamic-link.h" a second time there.
define extract
@rm -f $@.new
-$(XGETTEXT) --keyword=_ --keyword=N_ --sort-output -d - \
+$(XGETTEXT) --keyword=_ --keyword=N_ --add-comments=TRANS --sort-output -d - \
$(XGETTEXTFLAGS-$(@F)) > $@.new $^
mv -f $@.new $@
endef
@deftypevr Macro int ED
@comment errno 102 @c DO NOT REMOVE
The experienced user will know what is wrong.
+@c This error code is a joke. Its perror text is part of the joke.
+@c Don't change it.
@end deftypevr
@comment errno.h
# @comment POSIX.1: Function not implemented
# @deftypevr Macro int ENOSYS
# @comment errno 78
+# Descriptive paragraph...
+# @end deftypevr
BEGIN {
alias["EWOULDBLOCK"] = "EAGAIN";
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 " };";