process.c: initialize static IDs first

* process.c (Init_process): initialize static IDs before constant
  definitions.  [ruby-core:66445]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-11-25 03:14:45 +00:00
Родитель 8f79623184
Коммит 63aafb2004
2 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Tue Nov 25 12:14:43 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (Init_process): initialize static IDs before constant
definitions. [ruby-core:66445]
Tue Nov 25 10:32:23 2014 Eric Wong <e@80x24.org> Tue Nov 25 10:32:23 2014 Eric Wong <e@80x24.org>
* compile.c (iseq_build_callinfo_from_hash): hoist out * compile.c (iseq_build_callinfo_from_hash): hoist out

Просмотреть файл

@ -7519,7 +7519,7 @@ VALUE rb_mProcID_Syscall;
*/ */
void void
Init_process(void) InitVM_process(void)
{ {
#undef rb_intern #undef rb_intern
#define rb_intern(str) rb_intern_const(str) #define rb_intern(str) rb_intern_const(str)
@ -7899,7 +7899,11 @@ Init_process(void)
rb_define_module_function(rb_mProcID_Syscall, "setresuid", p_sys_setresuid, 3); rb_define_module_function(rb_mProcID_Syscall, "setresuid", p_sys_setresuid, 3);
rb_define_module_function(rb_mProcID_Syscall, "setresgid", p_sys_setresgid, 3); rb_define_module_function(rb_mProcID_Syscall, "setresgid", p_sys_setresgid, 3);
rb_define_module_function(rb_mProcID_Syscall, "issetugid", p_sys_issetugid, 0); rb_define_module_function(rb_mProcID_Syscall, "issetugid", p_sys_issetugid, 0);
}
void
Init_process(void)
{
id_in = rb_intern("in"); id_in = rb_intern("in");
id_out = rb_intern("out"); id_out = rb_intern("out");
id_err = rb_intern("err"); id_err = rb_intern("err");
@ -7941,4 +7945,6 @@ Init_process(void)
id_MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC = rb_intern("MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC"); id_MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC = rb_intern("MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC");
#endif #endif
id_hertz = rb_intern("hertz"); id_hertz = rb_intern("hertz");
InitVM(process);
} }