diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-06 16:16:25 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-06 16:16:25 +0000 |
commit | e31eedbdb8ba4216d520733bd00993579951b59e (patch) | |
tree | e2b5d9fb5aadb3267faef88ac47ebecf98c78ab1 /mjit.c | |
parent | 75eff5002d3e8baab2af0df944d5cadc2d6aa0c3 (diff) | |
download | ruby-e31eedbdb8ba4216d520733bd00993579951b59e.tar.gz |
mjit.c: prefix "_ruby" to precompiled header too
for consistency and to clarify who created it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -683,6 +683,8 @@ load_func_from_so(const char *so_file, const char *funcname, struct rb_mjit_unit return func; } +#define MJIT_TMP_PREFIX "_ruby_mjit_" + /* Compile ISeq in UNIT and return function pointer of JIT-ed code. It may return NOT_COMPILABLE_JIT_ISEQ_FUNC if something went wrong. */ static mjit_func_t @@ -694,8 +696,8 @@ convert_unit_to_func(struct rb_mjit_unit *unit) void *func; double start_time, end_time; - sprint_uniq_filename(c_file, unit->id, "_ruby_mjit", ".c"); - sprint_uniq_filename(so_file, unit->id, "_ruby_mjit", ".so"); + sprint_uniq_filename(c_file, unit->id, MJIT_TMP_PREFIX, ".c"); + sprint_uniq_filename(so_file, unit->id, MJIT_TMP_PREFIX, ".so"); sprintf(funcname, "_mjit%d", unit->id); f = fopen(c_file, "w"); @@ -1171,7 +1173,7 @@ mjit_init(struct mjit_options *opts) } init_header_filename(); - pch_file = get_uniq_filename(0, "_mjit_h", ".h.gch"); + pch_file = get_uniq_filename(0, MJIT_TMP_PREFIX "h", ".h.gch"); if (header_file == NULL || pch_file == NULL) { mjit_init_p = FALSE; verbose(1, "Failure in MJIT header file name initialization\n"); |