mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
De-duplicate parse_st.c code from st.c
This commit is contained in:
parent
3443e43b62
commit
c94b5f121d
Notes:
git
2023-06-24 10:17:55 +00:00
4 changed files with 8 additions and 2022 deletions
|
@ -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
|
||||
|
|
2026
parser_st.c
2026
parser_st.c
File diff suppressed because it is too large
Load diff
|
@ -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
2
st.c
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue