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 |
- |
|
|