[前][次][番号順一覧][スレッド一覧]

ruby-changes:39484

From: ko1 <ko1@a...>
Date: Thu, 13 Aug 2015 17:43:49 +0900 (JST)
Subject: [ruby-changes:39484] ko1:r51565 (trunk): * vm_core.h (rb_call_info_kw_arg_bytes): move the definition

ko1	2015-08-13 17:43:32 +0900 (Thu, 13 Aug 2015)

  New Revision: 51565

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51565

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/iseq.h
    trunk/vm_core.h
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51564)
+++ ChangeLog	(revision 51565)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Aug 13 17:42:34 2015  Koichi Sasada  <ko1@a...>
+
+	* 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@r...>
 
 	* object.c (rb_num_to_dbl): move from num2dbl_with_to_f in math.c.
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 51564)
+++ vm_core.h	(revision 51565)
@@ -180,12 +180,6 @@ typedef struct rb_call_info_kw_arg_struc https://github.com/ruby/ruby/blob/trunk/vm_core.h#L180
     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,
Index: iseq.h
===================================================================
--- iseq.h	(revision 51564)
+++ iseq.h	(revision 51565)
@@ -12,6 +12,12 @@ https://github.com/ruby/ruby/blob/trunk/iseq.h#L12
 #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 */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]