… | |
… | |
234 | // AUTOMATICALLLY GENERATED by gentables |
234 | // AUTOMATICALLLY GENERATED by gentables |
235 | // |
235 | // |
236 | #ifdef ENCODING_$group |
236 | #ifdef ENCODING_$group |
237 | |
237 | |
238 | $tab1$tab2 |
238 | $tab1$tab2 |
239 | struct rxvt_codeset_conv_$base : rxvt_codeset_conv { |
|
|
240 | uint32_t from_unicode (unicode_t unicode) const { |
239 | static uint32_t cs_$base\_from_unicode (unicode_t unicode) { |
241 | $fun1 } |
240 | $fun1} |
242 | EOF |
241 | EOF |
243 | |
242 | |
244 | if ($TO_UNICODE) { |
243 | if ($TO_UNICODE) { |
245 | print OUT <<EOF |
244 | print OUT <<EOF |
246 | #if ENCODING_TO_UNICODE |
245 | #if ENCODING_TO_UNICODE |
247 | unicode_t to_unicode (uint32_t enc) const { |
246 | static unicode_t cs_$base\_to_unicode (uint32_t enc) { |
248 | $fun2 } |
247 | $fun2} |
249 | #endif |
248 | #endif |
250 | EOF |
249 | EOF |
251 | } |
250 | } |
252 | |
251 | |
253 | print OUT <<EOF; |
252 | print OUT <<EOF; |
254 | } rxvt_codeset_conv_$base; |
|
|
255 | |
253 | |
256 | #else |
254 | #else |
257 | |
255 | |
258 | #define rxvt_codeset_conv_$base rxvt_codeset_conv_unknown |
256 | #define cs_$base\_from_unicode cs_unknown_from_unicode |
|
|
257 | #define cs_$base\_to_unicode cs_unknown_to_unicode |
259 | |
258 | |
260 | #endif |
259 | #endif |
261 | EOF |
260 | EOF |
262 | |
261 | |
263 | close OUT; |
262 | close OUT; |