do not redefine a typedef

duplicated typedef declaration was not allowed in C99.
This commit is contained in:
卜部昌平 2023-08-25 13:47:10 +09:00
parent fa2712981f
commit c914382db2
Notes: git 2023-08-25 08:28:20 +00:00
2 changed files with 5 additions and 1 deletions

View File

@ -1,8 +1,9 @@
#ifndef INTERNAL_RUBY_PARSE_H
#define INTERNAL_RUBY_PARSE_H
#include "rubyparser.h"
#include "internal.h"
#include "internal/imemo.h"
#include "rubyparser.h"
#include "vm.h"
RUBY_SYMBOL_EXPORT_BEGIN

View File

@ -327,8 +327,11 @@ typedef struct rb_ast_struct {
* Parser Interface
*/
typedef struct parser_params rb_parser_t;
#ifndef INTERNAL_IMEMO_H
typedef struct rb_imemo_tmpbuf_struct rb_imemo_tmpbuf_t;
#endif
#ifdef UNIVERSAL_PARSER
typedef struct rb_parser_config_struct {