De-duplicate parse_st.c code from st.c

This commit is contained in:
Nobuyoshi Nakada 2023-06-17 11:33:12 +09:00
parent 3443e43b62
commit c94b5f121d
Notes: git 2023-06-24 10:17:55 +00:00
4 changed files with 8 additions and 2022 deletions

View File

@ -11199,6 +11199,7 @@ parser_st.$(OBJEXT): {$(VPATH)}parser_bits.h
parser_st.$(OBJEXT): {$(VPATH)}parser_st.c
parser_st.$(OBJEXT): {$(VPATH)}parser_st.h
parser_st.$(OBJEXT): {$(VPATH)}parser_value.h
parser_st.$(OBJEXT): {$(VPATH)}st.c
proc.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
proc.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
proc.$(OBJEXT): $(CCAN_DIR)/list/list.h

File diff suppressed because it is too large Load Diff

View File

@ -105,6 +105,7 @@ enum parser_st_retval {ST2_CONTINUE, ST2_STOP, ST2_DELETE, ST2_CHECK, ST2_REPLAC
size_t rb_parser_st_table_size(const struct parser_st_table *tbl);
parser_st_table *rb_parser_st_init_table(const struct parser_st_hash_type *);
parser_st_table *rb_parser_st_init_table_with_size(const struct parser_st_hash_type *, parser_st_index_t);
parser_st_table *rb_parser_st_init_existing_table_with_size(parser_st_table *, const struct parser_st_hash_type *, parser_st_index_t);
parser_st_table *rb_parser_st_init_numtable(void);
parser_st_table *rb_parser_st_init_numtable_with_size(parser_st_index_t);
parser_st_table *rb_parser_st_init_strtable(void);

2
st.c
View File

@ -103,7 +103,7 @@
#ifdef NOT_RUBY
#include "regint.h"
#include "st.h"
#else
#elif defined RUBY_EXPORT
#include "internal.h"
#include "internal/bits.h"
#include "internal/hash.h"