1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* process.c (Init_process): Better patch for eliminating an

"unused variable".




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2009-03-23 12:53:52 +00:00
parent 38d2bcd952
commit 8d31e44620
2 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Mon Mar 23 21:52:26 2009 Akinori MUSHA <knu@iDaemons.org>
* process.c (Init_process): Better patch for eliminating an
"unused variable".
Mon Mar 23 21:41:14 2009 Akinori MUSHA <knu@iDaemons.org>
* ext/dbm/dbm.c (fdbm_initialize): Make the file variable

View file

@ -5449,13 +5449,17 @@ Init_process(void)
{
VALUE inf = RLIM2NUM(RLIM_INFINITY);
#ifdef RLIM_SAVED_MAX
VALUE v = RLIM_INFINITY == RLIM_SAVED_MAX ? inf : RLIM2NUM(RLIM_SAVED_MAX);
rb_define_const(rb_mProcess, "RLIM_SAVED_MAX", v);
{
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);
{
VALUE v = RLIM_INFINITY == RLIM_SAVED_CUR ? inf : RLIM2NUM(RLIM_SAVED_CUR);
rb_define_const(rb_mProcess, "RLIM_SAVED_CUR", v);
}
#endif
}
#ifdef RLIMIT_CORE