diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-27 01:38:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-27 01:38:20 +0000 |
commit | d956453a9816cbc4f731f8c1a188c0bd53982646 (patch) | |
tree | e10ac303cb1628b1e12d31eff32b2475f7b255c8 | |
parent | 0139a6f0e6c9f9d699cc0bc683809e11f856851f (diff) | |
download | ruby-d956453a9816cbc4f731f8c1a188c0bd53982646.tar.gz |
process.c: Process::Tms
* process.c (Init_process): rename Struct::Tms as Process::Tms. keep
the former defined for the backward compatibility, for the time
being.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | process.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -6630,9 +6630,9 @@ get_clk_tck(void) /* * call-seq: - * Process.times -> aStructTms + * Process.times -> aProcessTms * - * Returns a <code>Tms</code> structure (see <code>Struct::Tms</code>) + * Returns a <code>Tms</code> structure (see <code>Process::Tms</code>) * that contains user and system CPU times for this process, * and also for children processes. * @@ -7615,7 +7615,8 @@ Init_process(void) rb_define_module_function(rb_mProcess, "clock_getres", rb_clock_getres, -1); #if defined(HAVE_TIMES) || defined(_WIN32) - rb_cProcessTms = rb_struct_define("Tms", "utime", "stime", "cutime", "cstime", NULL); + rb_cProcessTms = rb_struct_define_under(rb_mProcess, "Tms", "utime", "stime", "cutime", "cstime", NULL); + rb_define_const(rb_cStruct, "Tms", rb_cProcessTms); /* for the backward compatibility */ #endif SAVED_USER_ID = geteuid(); |