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