ruby-changes:52099
From: k0kubun <ko1@a...>
Date: Sat, 11 Aug 2018 23:48:16 +0900 (JST)
Subject: [ruby-changes:52099] k0kubun:r64307 (trunk): mjit.c: stop defining alias for a very limited use
k0kubun 2018-08-11 23:48:10 +0900 (Sat, 11 Aug 2018) New Revision: 64307 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64307 Log: mjit.c: stop defining alias for a very limited use Modified files: trunk/mjit.c Index: mjit.c =================================================================== --- mjit.c (revision 64306) +++ mjit.c (revision 64307) @@ -17,9 +17,6 @@ https://github.com/ruby/ruby/blob/trunk/mjit.c#L17 extern int rb_thread_create_mjit_thread(void (*worker_func)(void)); -/* Make and return copy of STR in the heap. */ -#define get_string ruby_strdup - /* Return an unique file name in /tmp with PREFIX and SUFFIX and number ID. Use getpid if ID == 0. The return file name exists until the next function call. */ @@ -517,12 +514,12 @@ system_tmpdir(void) https://github.com/ruby/ruby/blob/trunk/mjit.c#L514 { char *tmpdir; # define RETURN_ENV(name) \ - if (check_tmpdir(tmpdir = getenv(name))) return get_string(tmpdir) + if (check_tmpdir(tmpdir = getenv(name))) return ruby_strdup(tmpdir) RETURN_ENV("TMPDIR"); RETURN_ENV("TMP"); tmpdir = system_default_tmpdir(); if (check_tmpdir(tmpdir)) return tmpdir; - return get_string("/tmp"); + return ruby_strdup("/tmp"); # undef RETURN_ENV } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/