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/lang/cl/mkerrcodes.awk (-1 / +1 lines)
Lines 122-128 header { Link Here
122
}
122
}
123
123
124
!header {
124
!header {
125
  sub (/\#.+/, "");
125
  sub (/#.+/, "");
126
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
126
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
127
127
128
  if (/^$/)
128
  if (/^$/)
(-)a/src/Makefile.am (-1 / +1 lines)
Lines 281-287 code-from-errno.h: mkerrcodes Makefile Link Here
281
281
282
errnos-sym.h: Makefile mkstrtable.awk errnos.in
282
errnos-sym.h: Makefile mkstrtable.awk errnos.in
283
	$(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \
283
	$(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \
284
		-v prefix=GPG_ERR_ -v namespace=errnos_ \
284
		-v prefix=GPG_ERR_ -v pkg_namespace=errnos_ \
285
		$(srcdir)/errnos.in >$@
285
		$(srcdir)/errnos.in >$@
286
286
287
287
(-)a/src/Makefile.in (-1 / +1 lines)
Lines 1449-1455 code-from-errno.h: mkerrcodes Makefile Link Here
1449
1449
1450
errnos-sym.h: Makefile mkstrtable.awk errnos.in
1450
errnos-sym.h: Makefile mkstrtable.awk errnos.in
1451
	$(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \
1451
	$(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \
1452
		-v prefix=GPG_ERR_ -v namespace=errnos_ \
1452
		-v prefix=GPG_ERR_ -v pkg_namespace=errnos_ \
1453
		$(srcdir)/errnos.in >$@
1453
		$(srcdir)/errnos.in >$@
1454
1454
1455
mkheader: mkheader.c Makefile
1455
mkheader: mkheader.c Makefile
(-)a/src/mkerrcodes.awk (-1 / +1 lines)
Lines 85-91 header { Link Here
85
}
85
}
86
86
87
!header {
87
!header {
88
  sub (/\#.+/, "");
88
  sub (/#.+/, "");
89
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
89
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
90
90
91
  if (/^$/)
91
  if (/^$/)
(-)a/src/mkerrcodes1.awk (-1 / +1 lines)
Lines 81-87 header { Link Here
81
}
81
}
82
82
83
!header {
83
!header {
84
  sub (/\#.+/, "");
84
  sub (/#.+/, "");
85
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
85
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
86
86
87
  if (/^$/)
87
  if (/^$/)
(-)a/src/mkerrcodes2.awk (-1 / +1 lines)
Lines 91-97 header { Link Here
91
}
91
}
92
92
93
!header {
93
!header {
94
  sub (/\#.+/, "");
94
  sub (/#.+/, "");
95
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
95
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
96
96
97
  if (/^$/)
97
  if (/^$/)
(-)a/src/mkerrnos.awk (-1 / +1 lines)
Lines 83-89 header { Link Here
83
}
83
}
84
84
85
!header {
85
!header {
86
  sub (/\#.+/, "");
86
  sub (/#.+/, "");
87
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
87
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
88
88
89
  if (/^$/)
89
  if (/^$/)
(-)a/src/mkstrtable.awk (-6 / +5 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 pkg_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 " pkg_namespace "msgstr[] = ";
106
      header = 0;
106
      header = 0;
107
    }
107
    }
108
  else
108
  else
Lines 110-116 header { Link Here
110
}
110
}
111
111
112
!header {
112
!header {
113
  sub (/\#.+/, "");
113
  sub (/#.+/, "");
114
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
114
  sub (/[ 	]+$/, ""); # Strip trailing space and tab characters.
115
115
116
  if (/^$/)
116
  if (/^$/)
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 " pkg_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 pkg_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