diff options
author | Peter Zhu <[email protected]> | 2024-02-20 15:58:10 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-02-21 11:33:05 -0500 |
commit | 330830dd1a44b6e497250a14d93efae6fa363f82 () | |
tree | 864fc9a6ba29c91fcbeb0c9c439e99b7d7fb0a04 /node.c | |
parent | 2e6f8554f8c4ec12f620f31d4a110066ee76bfbe (diff) |
Add IMEMO_NEW
Rather than exposing that an imemo has a flag and four fields, this changes the implementation to only expose one field (the klass) and fills the rest with 0. The type will have to fill in the values themselves.
-rw-r--r-- | node.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -344,8 +344,7 @@ rb_ast_t * rb_ast_new(void) { node_buffer_t *nb = rb_node_buffer_new(); - rb_ast_t *ast = (rb_ast_t *)rb_imemo_new(imemo_ast, 0, 0, 0, (VALUE)nb); - return ast; } #endif |