mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_sym_proc_call): constify
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a7f64368ae
commit
de2c8c9dbc
2 changed files with 4 additions and 3 deletions
|
@ -1109,7 +1109,7 @@ VALUE rb_external_str_with_enc(VALUE str, rb_encoding *eenc);
|
|||
#define is_ascii_string(str) (rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT)
|
||||
#define is_broken_string(str) (rb_enc_str_coderange(str) == ENC_CODERANGE_BROKEN)
|
||||
size_t rb_str_memsize(VALUE);
|
||||
VALUE rb_sym_proc_call(VALUE args, VALUE sym, int argc, VALUE *argv, VALUE passed_proc);
|
||||
VALUE rb_sym_proc_call(VALUE args, VALUE sym, int argc, const VALUE *argv, VALUE passed_proc);
|
||||
|
||||
/* struct.c */
|
||||
VALUE rb_struct_init_copy(VALUE copy, VALUE s);
|
||||
|
|
5
string.c
5
string.c
|
@ -8916,7 +8916,7 @@ sym_to_sym(VALUE sym)
|
|||
}
|
||||
|
||||
VALUE
|
||||
rb_sym_proc_call(VALUE args, VALUE sym, int argc, VALUE *argv, VALUE passed_proc)
|
||||
rb_sym_proc_call(VALUE args, VALUE sym, int argc, const VALUE *argv, VALUE passed_proc)
|
||||
{
|
||||
VALUE obj;
|
||||
|
||||
|
@ -8942,7 +8942,8 @@ sym_to_proc(VALUE sym)
|
|||
static VALUE sym_proc_cache = Qfalse;
|
||||
enum {SYM_PROC_CACHE_SIZE = 67};
|
||||
VALUE proc;
|
||||
long id, index;
|
||||
long index;
|
||||
ID id;
|
||||
VALUE *aryp;
|
||||
|
||||
if (!sym_proc_cache) {
|
||||
|
|
Loading…
Reference in a new issue