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

ruby-changes:31914

From: nobu <ko1@a...>
Date: Thu, 5 Dec 2013 10:16:25 +0900 (JST)
Subject: [ruby-changes:31914] nobu:r43993 (trunk): gc.c: rb_gc_set_params

nobu	2013-12-05 10:16:20 +0900 (Thu, 05 Dec 2013)

  New Revision: 43993

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

  Log:
    gc.c: rb_gc_set_params
    
    * gc.c (rb_gc_set_params): define as separate function.
      RUBY_ALIAS_FUNCTION is for simple alias only, the third parameter
      will be ignored on gcc.

  Modified files:
    trunk/gc.c
Index: gc.c
===================================================================
--- gc.c	(revision 43992)
+++ gc.c	(revision 43993)
@@ -5419,7 +5419,11 @@ ruby_gc_set_params(int safe_level) https://github.com/ruby/ruby/blob/trunk/gc.c#L5419
 #endif
 }
 
-RUBY_ALIAS_FUNCTION_VOID(rb_gc_set_params(void), ruby_gc_set_params, (rb_safe_level()))
+void
+rb_gc_set_params(void)
+{
+    ruby_gc_set_params(rb_safe_level());
+}
 
 void
 rb_objspace_reachable_objects_from(VALUE obj, void (func)(VALUE, void *), void *data)

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

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