summaryrefslogtreecommitdiff
path: root/internal/parse.h
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-12-03 14:47:38 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-12-26 20:45:12 +0900
commitbf53d6c7d19f877c821901b3288d7f80955ffbb7 (patch)
tree4c4dbac564d721af8b295f55e6f81c21af8b0fbe /internal/parse.h
parent3ae09b30f8ba5ff4dd148d358f51b99ae0ae6c38 (diff)
other minior internal header tweaks
These headers need no rewrite. Just add some minor tweaks, like addition of #include lines. Mainly cosmetic. TIMET_MAX_PLUS_ONE was deleted because the macro was used from only one place (directly write expression there).
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2711
Diffstat (limited to 'internal/parse.h')
-rw-r--r--internal/parse.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/internal/parse.h b/internal/parse.h
index 0132557951..bcde0fea7a 100644
--- a/internal/parse.h
+++ b/internal/parse.h
@@ -9,15 +9,20 @@
* modify this file, provided that the conditions mentioned in the
* file COPYING are met. Consult the file for details.
*/
+#include "ruby/ruby.h" /* for VALUE */
-/* parse.y */
#ifndef USE_SYMBOL_GC
-#define USE_SYMBOL_GC 1
+# define USE_SYMBOL_GC 1
#endif
+
+struct rb_iseq_struct; /* in vm_core.h */
+
+/* parse.y */
VALUE rb_parser_set_yydebug(VALUE, VALUE);
+void *rb_parser_load_file(VALUE parser, VALUE name);
+
RUBY_SYMBOL_EXPORT_BEGIN
VALUE rb_parser_set_context(VALUE, const struct rb_iseq_struct *, int);
RUBY_SYMBOL_EXPORT_END
-void *rb_parser_load_file(VALUE parser, VALUE name);
#endif /* INTERNAL_PARSE_H */