From bf53d6c7d19f877c821901b3288d7f80955ffbb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Tue, 3 Dec 2019 14:47:38 +0900 Subject: 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). --- internal/parse.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'internal/parse.h') 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 */ -- cgit v1.2.1