зеркало из https://github.com/github/ruby.git
* ext/date/date_core.c: do not define wnum[01].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
94b65c9d3f
Коммит
64f6ddb31d
|
@ -1,3 +1,7 @@
|
|||
Sat Jun 18 00:20:54 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* ext/date/date_core.c: do not define wnum[01].
|
||||
|
||||
Fri Jun 17 18:57:36 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* compile.c (iseq_compile_each): fix return value of obj[a,*b]=c.
|
||||
|
|
|
@ -4887,6 +4887,7 @@ d_lite_cwday(VALUE self)
|
|||
return INT2FIX(m_cwday(dat));
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
static VALUE
|
||||
d_lite_wnum0(VALUE self)
|
||||
{
|
||||
|
@ -4900,6 +4901,7 @@ d_lite_wnum1(VALUE self)
|
|||
get_d1(self);
|
||||
return INT2FIX(m_wnum1(dat));
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
|
@ -9262,8 +9264,10 @@ Init_date_core(void)
|
|||
rb_define_method(cDate, "cweek", d_lite_cweek, 0);
|
||||
rb_define_method(cDate, "cwday", d_lite_cwday, 0);
|
||||
|
||||
rb_define_private_method(cDate, "wnum0", d_lite_wnum0, 0);
|
||||
rb_define_private_method(cDate, "wnum1", d_lite_wnum1, 0);
|
||||
#ifndef NDEBUG
|
||||
de_define_private_method(cDate, "wnum0", d_lite_wnum0, 0);
|
||||
de_define_private_method(cDate, "wnum1", d_lite_wnum1, 0);
|
||||
#endif
|
||||
|
||||
rb_define_method(cDate, "wday", d_lite_wday, 0);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче