Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed May 29, 2023
1 parent 574fdd0 commit c12b7f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ruby_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -958,3 +958,6 @@ rb_parser_set_yydebug(VALUE vparser, VALUE flag)
return flag;
}
#endif

/* For "ISO C requires a translation unit to contain at least one declaration" */
#define RUBY_PARSER_C
4 changes: 2 additions & 2 deletions st2.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ extern "C" {
#include <stdint.h>
#include "ruby/config.h"

RUBY_SYMBOL_EXPORT_BEGIN

#if SIZEOF_LONG == SIZEOF_VOIDP
typedef unsigned long st2_data_t;
#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
Expand Down Expand Up @@ -105,6 +103,8 @@ struct st2_table {

enum st2_retval {ST2_CONTINUE, ST2_STOP, ST2_DELETE, ST2_CHECK, ST2_REPLACE};

RUBY_SYMBOL_EXPORT_BEGIN

size_t rb_st2_table_size(const struct st2_table *tbl);
st2_table *rb_st2_init_table(const struct st2_hash_type *, st_functions_t *);
st2_table *rb_st2_init_table_with_size(const struct st2_hash_type *, st_functions_t *, st2_index_t);
Expand Down

0 comments on commit c12b7f8

Please sign in to comment.