зеркало из https://github.com/github/ruby.git
Remove unused functions from `struct rb_parser_config_struct`
This commit is contained in:
Родитель
5970386a2e
Коммит
924b928e35
|
@ -195,12 +195,6 @@ enc_codelen(int c, void *enc)
|
|||
return rb_enc_codelen(c, (rb_encoding *)enc);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
enc_str_buf_cat(VALUE str, const char *ptr, long len, void *enc)
|
||||
{
|
||||
return rb_enc_str_buf_cat(str, ptr, len, (rb_encoding *)enc);
|
||||
}
|
||||
|
||||
static int
|
||||
enc_mbcput(unsigned int c, void *buf, void *enc)
|
||||
{
|
||||
|
@ -460,8 +454,6 @@ static const rb_parser_config_t rb_global_parser_config = {
|
|||
.str_cat_cstr = rb_str_cat_cstr,
|
||||
.str_subseq = rb_str_subseq,
|
||||
.str_new_frozen = rb_str_new_frozen,
|
||||
.str_buf_new = rb_str_buf_new,
|
||||
.str_buf_cat = rb_str_buf_cat,
|
||||
.str_modify = rb_str_modify,
|
||||
.str_set_len = rb_str_set_len,
|
||||
.str_cat = rb_str_cat,
|
||||
|
@ -471,8 +463,6 @@ static const rb_parser_config_t rb_global_parser_config = {
|
|||
.str_to_interned_str = rb_str_to_interned_str,
|
||||
.is_ascii_string = is_ascii_string2,
|
||||
.enc_str_new = enc_str_new,
|
||||
.enc_str_buf_cat = enc_str_buf_cat,
|
||||
.str_buf_append = rb_str_buf_append,
|
||||
.str_vcatf = rb_str_vcatf,
|
||||
.string_value_cstr = rb_string_value_cstr,
|
||||
.rb_sprintf = rb_sprintf,
|
||||
|
|
|
@ -1284,8 +1284,6 @@ typedef struct rb_parser_config_struct {
|
|||
VALUE (*str_cat_cstr)(VALUE str, const char *ptr);
|
||||
VALUE (*str_subseq)(VALUE str, long beg, long len);
|
||||
VALUE (*str_new_frozen)(VALUE orig);
|
||||
VALUE (*str_buf_new)(long capa);
|
||||
VALUE (*str_buf_cat)(VALUE, const char*, long);
|
||||
void (*str_modify)(VALUE str);
|
||||
void (*str_set_len)(VALUE str, long len);
|
||||
VALUE (*str_cat)(VALUE str, const char *ptr, long len);
|
||||
|
@ -1295,8 +1293,6 @@ typedef struct rb_parser_config_struct {
|
|||
VALUE (*str_to_interned_str)(VALUE);
|
||||
int (*is_ascii_string)(VALUE str);
|
||||
VALUE (*enc_str_new)(const char *ptr, long len, rb_encoding *enc);
|
||||
VALUE (*enc_str_buf_cat)(VALUE str, const char *ptr, long len, rb_encoding *enc);
|
||||
VALUE (*str_buf_append)(VALUE str, VALUE str2);
|
||||
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 0)
|
||||
VALUE (*str_vcatf)(VALUE str, const char *fmt, va_list ap);
|
||||
char *(*string_value_cstr)(volatile VALUE *ptr);
|
||||
|
|
|
@ -125,9 +125,6 @@
|
|||
#define rb_str_cat_cstr p->config->str_cat_cstr
|
||||
#define rb_str_subseq p->config->str_subseq
|
||||
#define rb_str_new_frozen p->config->str_new_frozen
|
||||
#define rb_str_buf_new p->config->str_buf_new
|
||||
#undef rb_str_buf_cat
|
||||
#define rb_str_buf_cat p->config->str_buf_cat
|
||||
#define rb_str_modify p->config->str_modify
|
||||
#define rb_str_set_len p->config->str_set_len
|
||||
#define rb_str_cat p->config->str_cat
|
||||
|
@ -139,8 +136,6 @@
|
|||
#define rb_str_to_interned_str p->config->str_to_interned_str
|
||||
#define is_ascii_string p->config->is_ascii_string
|
||||
#define rb_enc_str_new p->config->enc_str_new
|
||||
#define rb_enc_str_buf_cat p->config->enc_str_buf_cat
|
||||
#define rb_str_buf_append p->config->str_buf_append
|
||||
#define rb_str_vcatf p->config->str_vcatf
|
||||
#undef StringValueCStr
|
||||
#define StringValueCStr(v) p->config->string_value_cstr(&(v))
|
||||
|
|
Загрузка…
Ссылка в новой задаче