summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 18:06:28 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 18:06:28 +0000
commit463636d326e21038dcab8f2df9f46c7d6a847603 (patch)
treeff1f9409bc8036390b592f1172fc3bae3ee79898 /tool
parent91fbf5d53cd353a8af3fe1784dd3df0c39b53a0c (diff)
downloadruby-463636d326e21038dcab8f2df9f46c7d6a847603.tar.gz
ruby-463636d326e21038dcab8f2df9f46c7d6a847603.tar.xz
ruby-463636d326e21038dcab8f2df9f46c7d6a847603.zip
* tool/transcode-tblgen.rb: record infos and BYTE_LOOKUPs as index of
word_array to avoid relocation. * transcode.c (transcode_restartable0): add word_array to get infos and BYTE_LOOKUPs. * transcode_data.h (BYTE_LOOKUP_INFO): change return type to uintptr_t. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/transcode-tblgen.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index 99065869d..1915d31f6 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -358,7 +358,7 @@ End
size = words_code[/\[\d+\]/][1...-1].to_i
words_code.sub!(/^(\};\n\z)/) {
- "\#define #{infos_name} (((uintptr_t)word_array)+sizeof(uintptr_t)*#{size})\n" +
+ "\#define #{infos_name} (sizeof(uintptr_t)*#{size})\n" +
format_infos(infos) + "\n" +
$1
}
@@ -368,7 +368,7 @@ End
size = words_code[/\[\d+\]/][1...-1].to_i
words_code.sub!(/^(\};\n\z)/) {
- "\#define #{name} ((uintptr_t)(word_array+#{size}))\n" +
+ "\#define #{name} (sizeof(uintptr_t)*#{size})\n" +
<<"End" + "\n" + $1
#{offsets_name},
#{infos_name},