Skip to content

Commit

Permalink
Expose oj_parser_type for extensions (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
meinac authored Feb 24, 2025
1 parent 5b65384 commit 4cdb055
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ext/oj/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ static void parser_mark(void *ptr) {
}
}

static const rb_data_type_t oj_parser_type = {
const rb_data_type_t oj_parser_type = {
"Oj/parser",
{
parser_mark,
Expand Down
2 changes: 2 additions & 0 deletions ext/oj/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ typedef struct _num {

struct _ojParser;

extern const rb_data_type_t oj_parser_type;

typedef struct _funcs {
void (*add_null)(struct _ojParser *p);
void (*add_true)(struct _ojParser *p);
Expand Down

0 comments on commit 4cdb055

Please sign in to comment.