зеркало из https://github.com/github/ruby.git
* 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:
Родитель
38d2bcd952
Коммит
8d31e44620
|
@ -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
|
||||
|
|
12
process.c
12
process.c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче