Skip to content

Commit

Permalink
do not redefine a typedef
Browse files Browse the repository at this point in the history
duplicated typedef declaration was not allowed in C99.
  • Loading branch information
shyouhei committed Aug 25, 2023
1 parent 98ba12c commit 142a7fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/ruby_parser.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions rubyparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 142a7fc

Please sign in to comment.