Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 683254 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/Makefile.am (-1 / +1 lines)
Lines 293-299 code-from-errno.h: mkerrcodes$(EXEEXT_FOR_BUILD) Makefile Link Here
293
293
294
errnos-sym.h: Makefile mkstrtable.awk errnos.in
294
errnos-sym.h: Makefile mkstrtable.awk errnos.in
295
	$(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \
295
	$(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \
296
		-v prefix=GPG_ERR_ -v namespace=errnos_ \
296
		-v prefix=GPG_ERR_ -v libgpg_error_namespace=errnos_ \
297
		$(srcdir)/errnos.in >$@
297
		$(srcdir)/errnos.in >$@
298
298
299
299
(-)a/src/mkstrtable.awk (-5 / +4 lines)
Lines 77-83 Link Here
77
#
77
#
78
# The variable prefix can be used to prepend a string to each message.
78
# The variable prefix can be used to prepend a string to each message.
79
#
79
#
80
# The variable namespace can be used to prepend a string to each
80
# The variable libgpg_error_namespace can be used to prepend a string to each
81
# variable and macro name.
81
# variable and macro name.
82
82
83
BEGIN {
83
BEGIN {
Lines 102-108 header { Link Here
102
      print "/* The purpose of this complex string table is to produce";
102
      print "/* The purpose of this complex string table is to produce";
103
      print "   optimal code with a minimum of relocations.  */";
103
      print "   optimal code with a minimum of relocations.  */";
104
      print "";
104
      print "";
105
      print "static const char " namespace "msgstr[] = ";
105
      print "static const char " libgpg_error_namespace "msgstr[] = ";
106
      header = 0;
106
      header = 0;
107
    }
107
    }
108
  else
108
  else
Lines 150-156 END { Link Here
150
  else
150
  else
151
    print "  gettext_noop (\"" last_msgstr "\");";
151
    print "  gettext_noop (\"" last_msgstr "\");";
152
  print "";
152
  print "";
153
  print "static const int " namespace "msgidx[] =";
153
  print "static const int " libgpg_error_namespace "msgidx[] =";
154
  print "  {";
154
  print "  {";
155
  for (i = 0; i < coded_msgs; i++)
155
  for (i = 0; i < coded_msgs; i++)
156
    print "    " pos[i] ",";
156
    print "    " pos[i] ",";
Lines 158-164 END { Link Here
158
  print "  };";
158
  print "  };";
159
  print "";
159
  print "";
160
  print "static GPG_ERR_INLINE int";
160
  print "static GPG_ERR_INLINE int";
161
  print namespace "msgidxof (int code)";
161
  print libgpg_error_namespace "msgidxof (int code)";
162
  print "{";
162
  print "{";
163
  print "  return (0 ? 0";
163
  print "  return (0 ? 0";
164
164
165
- 

Return to bug 683254