aboutsummaryrefslogtreecommitdiffstats
path: root/universal_parser.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2023-08-25 14:42:11 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2023-08-25 17:27:53 +0900
commit1614e5ebb2354603d5dca2a443a0bd669d21eda7 (patch)
tree0f5f870fb1b191c7b5db5fe8d1097bee7ffe7a01 /universal_parser.c
parent81620ed9b5553a80ea2c7d95b58c3217b1679459 (diff)
downloadruby-1614e5ebb2354603d5dca2a443a0bd669d21eda7.tar.gz
C structs cannot have two definitions
Not allowed even the definitions are identical.
Diffstat (limited to 'universal_parser.c')
-rw-r--r--universal_parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/universal_parser.c b/universal_parser.c
index 1e7fc41fa0..0f1395322e 100644
--- a/universal_parser.c
+++ b/universal_parser.c
@@ -77,6 +77,7 @@
#undef T_RATIONAL
#define T_RATIONAL 0x0f
+#ifndef INTERNAL_IMEMO_H
struct rb_imemo_tmpbuf_struct {
VALUE flags;
VALUE reserved;
@@ -84,6 +85,7 @@ struct rb_imemo_tmpbuf_struct {
struct rb_imemo_tmpbuf_struct *next; /* next imemo */
size_t cnt; /* buffer size in VALUE */
};
+#endif
#undef xmalloc
#define xmalloc p->config->malloc