5 errnos-sym.h: Makefile mkstrtable.awk errnos.in
6 $(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \
7 - -v prefix=GPG_ERR_ -v namespace=errnos_ \
8 + -v prefix=GPG_ERR_ -v pkg_namespace=errnos_ \
9 $(srcdir)/errnos.in >$@
12 --- src/mkerrcodes.awk
13 +++ src/mkerrcodes.awk~
20 sub (/[ ]+$/, ""); # Strip trailing space and tab characters.
23 --- src/mkerrcodes1.awk
24 +++ src/mkerrcodes1.awk~
31 sub (/[ ]+$/, ""); # Strip trailing space and tab characters.
34 --- src/mkerrcodes2.awk
35 +++ src/mkerrcodes2.awk~
42 sub (/[ ]+$/, ""); # Strip trailing space and tab characters.
53 sub (/[ ]+$/, ""); # Strip trailing space and tab characters.
56 --- src/mkstrtable.awk
57 +++ src/mkstrtable.awk~
60 # The variable prefix can be used to prepend a string to each message.
62 -# The variable namespace can be used to prepend a string to each
63 +# The variable pkg_namespace can be used to prepend a string to each
64 # variable and macro name.
68 print "/* The purpose of this complex string table is to produce";
69 print " optimal code with a minimum of relocations. */";
71 - print "static const char " namespace "msgstr[] = ";
72 + print "static const char " pkg_namespace "msgstr[] = ";
82 sub (/[ ]+$/, ""); # Strip trailing space and tab characters.
87 print " gettext_noop (\"" last_msgstr "\");";
89 - print "static const int " namespace "msgidx[] =";
90 + print "static const int " pkg_namespace "msgidx[] =";
92 for (i = 0; i < coded_msgs; i++)
97 print "static GPG_ERR_INLINE int";
98 - print namespace "msgidxof (int code)";
99 + print pkg_namespace "msgidxof (int code)";
101 print " return (0 ? 0";
105 @@ -1321,7 +1321,7 @@
107 errnos-sym.h: Makefile mkstrtable.awk errnos.in
108 $(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \
109 - -v prefix=GPG_ERR_ -v namespace=errnos_ \
110 + -v prefix=GPG_ERR_ -v pkg_namespace=errnos_ \
111 $(srcdir)/errnos.in >$@
113 mkheader: mkheader.c Makefile