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

ruby-changes:53936

From: normal <ko1@a...>
Date: Mon, 3 Dec 2018 17:57:21 +0900 (JST)
Subject: [ruby-changes:53936] normal:r66156 (trunk): process.c (rb_f_system): cleanup to use rb_execarg_get

normal	2018-12-03 17:57:15 +0900 (Mon, 03 Dec 2018)

  New Revision: 66156

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

  Log:
    process.c (rb_f_system): cleanup to use rb_execarg_get
    
    TypedData_* macros hide assignments and are confusing and too
    long for users of giant fonts.

  Modified files:
    trunk/process.c
Index: process.c
===================================================================
--- process.c	(revision 66155)
+++ process.c	(revision 66156)
@@ -4445,7 +4445,7 @@ rb_f_system(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/process.c#L4445
     int exec_errnum;
 
     execarg_obj = rb_execarg_new(argc, argv, TRUE, TRUE);
-    TypedData_Get_Struct(execarg_obj, struct rb_execarg, &exec_arg_data_type, eargp);
+    eargp = rb_execarg_get(execarg_obj);
     w->ec = GET_EC();
     waitpid_state_init(w, 0, 0);
     eargp->waitpid_state = w;

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

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