mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* process.c (Init_process): fix to avoid a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2b2683b732
commit
002fb8f747
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Jun 30 02:10:32 2008 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* process.c (Init_process): fix to avoid a warning.
|
||||
|
||||
Mon Jun 30 01:52:05 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* test/ruby/test_parse.rb: remove tests for open_args.
|
||||
|
|
|
@ -5152,12 +5152,12 @@ Init_process(void)
|
|||
rb_define_module_function(rb_mProcess, "setrlimit", proc_setrlimit, -1);
|
||||
#ifdef RLIM2NUM
|
||||
{
|
||||
VALUE inf = RLIM2NUM(RLIM_INFINITY), v;
|
||||
rb_define_const(rb_mProcess, "RLIM_INFINITY", inf);
|
||||
VALUE inf = RLIM2NUM(RLIM_INFINITY);
|
||||
#ifdef RLIM_SAVED_MAX
|
||||
v = RLIM_INFINITY == RLIM_SAVED_MAX ? inf : RLIM2NUM(RLIM_SAVED_MAX);
|
||||
VALUE v = RLIM_INFINITY == RLIM_SAVED_MAX ? inf : RLIM2NUM(RLIM_SAVED_MAX);
|
||||
rb_define_const(rb_mProcess, "RLIM_SAVED_MAX", v);
|
||||
#endif
|
||||
rb_define_const(rb_mProcess, "RLIM_INFINITY", inf);
|
||||
#ifdef RLIM_SAVED_CUR
|
||||
v = RLIM_INFINITY == RLIM_SAVED_CUR ? inf : RLIM2NUM(RLIM_SAVED_CUR);
|
||||
rb_define_const(rb_mProcess, "RLIM_SAVED_CUR", v);
|
||||
|
|
Loading…
Add table
Reference in a new issue