aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-11 14:48:10 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-11 14:48:10 +0000
commitf472a55cd8a8eb94d1f2548bc81660de4e70acb8 (patch)
tree62adab8e51ffa50f0ffa036efcb4e249364b6508 /mjit.c
parent8bdc43ba321af41aec1006a5ffe005dae4526fd0 (diff)
downloadruby-f472a55cd8a8eb94d1f2548bc81660de4e70acb8.tar.gz
mjit.c: stop defining alias for a very limited use
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/mjit.c b/mjit.c
index cef6e87a2e..5a087312bf 100644
--- a/mjit.c
+++ b/mjit.c
@@ -17,9 +17,6 @@
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)
{
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
}