mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_core.h (rb_call_info_kw_arg_bytes): move the definition
to iseq.h because this function is shared with iseq.c and compile.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9e524c68b6
commit
d22a09e189
3 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Aug 13 17:42:34 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* vm_core.h (rb_call_info_kw_arg_bytes): move the definition
|
||||
to iseq.h because this function is shared with iseq.c and compile.c.
|
||||
|
||||
Thu Aug 13 14:36:31 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* object.c (rb_num_to_dbl): move from num2dbl_with_to_f in math.c.
|
||||
|
|
6
iseq.h
6
iseq.h
|
@ -12,6 +12,12 @@
|
|||
#ifndef RUBY_COMPILE_H
|
||||
#define RUBY_COMPILE_H
|
||||
|
||||
static inline size_t
|
||||
rb_call_info_kw_arg_bytes(int keyword_len)
|
||||
{
|
||||
return sizeof(rb_call_info_kw_arg_t) + sizeof(VALUE) * (keyword_len - 1);
|
||||
}
|
||||
|
||||
RUBY_SYMBOL_EXPORT_BEGIN
|
||||
|
||||
/* compile.c */
|
||||
|
|
|
@ -180,12 +180,6 @@ typedef struct rb_call_info_kw_arg_struct {
|
|||
VALUE keywords[1];
|
||||
} rb_call_info_kw_arg_t;
|
||||
|
||||
static inline size_t
|
||||
rb_call_info_kw_arg_bytes(int keyword_len)
|
||||
{
|
||||
return sizeof(rb_call_info_kw_arg_t) + sizeof(VALUE) * (keyword_len - 1);
|
||||
}
|
||||
|
||||
enum method_missing_reason {
|
||||
MISSING_NOENTRY = 0x00,
|
||||
MISSING_PRIVATE = 0x01,
|
||||
|
|
Loading…
Reference in a new issue