summaryrefslogtreecommitdiff
path: root/tool/transcode-tblgen.rb
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-02-07 14:14:05 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-02-07 14:24:19 +0900
commit115fec062ccf7c6d72c8d5f64b7a5d84c9fb2dd8 (patch)
tree24639dba7b24afdd604b5d8c5b9e9f06d3d91faa /tool/transcode-tblgen.rb
parent6ed1a5e0e62bbdadcf3d0c61fcfe0c5f8d01789b (diff)
more on NULL versus functions.
Function pointers are not void*. See also ce4ea956d24eab5089a143bba38126f2b11b55b6 8427fca49bd85205f5a8766292dd893f003c0e48
Diffstat (limited to 'tool/transcode-tblgen.rb')
-rw-r--r--tool/transcode-tblgen.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index 156b2de197..c6b58dbe78 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -895,9 +895,9 @@ static const rb_transcoder
#{max_input}, /* max_input */
#{max_output}, /* max_output */
#{ascii_compatibility}, /* asciicompat_type */
- 0, NULL, NULL, /* state_size, state_init, state_fini */
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL
+ 0, 0, 0, /* state_size, state_init, state_fini */
+ 0, 0, 0, 0,
+ 0, 0, 0
};
End
TRANSCODE_GENERATED_TRANSCODER_CODE << transcoder_code