summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 18:18:50 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 18:18:50 +0000
commitc5759bfb5b71517af525b1bc51fd485572344758 (patch)
tree47776030a7c9d663b5317d8d179dbd2393e12d38 /tool
parent6058eeaf0360cd5e56106db1f360a7edf3c91f1a (diff)
* tool/transcode-tblgen.rb: define TRANSCODE_TABLE_INFO in generated
code. use it in rb_transcoder. * enc/trans/newline.trans: use TRANSCODE_TABLE_INFO. * enc/trans/iso2022.trans: ditto. * enc/trans/utf_16_32.trans: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/transcode-tblgen.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index 1915d31f648..928e722a5c0 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -587,7 +587,7 @@ def transcode_tblgen(from, to, map)
static const rb_transcoder
#{transcoder_name} = {
#{c_esc from}, #{c_esc to}, #{real_tree_name},
- byte_array, word_array, sizeof(uintptr_t),
+ TRANSCODE_TABLE_INFO,
#{input_unit_length}, /* input_unit_length */
#{max_input}, /* max_input */
#{max_output}, /* max_output */
@@ -607,7 +607,10 @@ def transcode_generate_node(am, name_hint=nil)
end
def transcode_generated_code
- TRANSCODE_GENERATED_BYTES_CODE + TRANSCODE_GENERATED_WORDS_CODE + TRANSCODE_GENERATED_TRANSCODER_CODE
+ TRANSCODE_GENERATED_BYTES_CODE +
+ TRANSCODE_GENERATED_WORDS_CODE +
+ "\#define TRANSCODE_TABLE_INFO byte_array, word_array, sizeof(uintptr_t)\n" +
+ TRANSCODE_GENERATED_TRANSCODER_CODE
end
def transcode_register_code