зеркало из https://github.com/github/ruby.git
* ext/syck/rubyext.c: omission of Date library code caused
test suite failure. [ruby-core:2251] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
cfcebb7e8f
Коммит
5cebcf9a2b
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Jan 13 16:53:25 2004 why the lucky stiff <why@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/syck/rubyext.c: omission of Date library code caused
|
||||||
|
test suite failure. [ruby-core:2251]
|
||||||
|
|
||||||
Tue Jan 13 16:50:03 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
Tue Jan 13 16:50:03 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tk/lib/tk.rb: use $0 as the default application class name.
|
* ext/tk/lib/tk.rb: use $0 as the default application class name.
|
||||||
|
|
|
@ -521,6 +521,14 @@ yaml_org_handler( n, ref )
|
||||||
ptr += 2;
|
ptr += 2;
|
||||||
while ( !ISDIGIT( *ptr ) ) ptr++;
|
while ( !ISDIGIT( *ptr ) ) ptr++;
|
||||||
day = INT2FIX(strtol(ptr, NULL, 10));
|
day = INT2FIX(strtol(ptr, NULL, 10));
|
||||||
|
|
||||||
|
if ( !cDate ) {
|
||||||
|
/*
|
||||||
|
* Load Date module
|
||||||
|
*/
|
||||||
|
rb_require( "date" );
|
||||||
|
cDate = rb_const_get( rb_cObject, rb_intern("Date") );
|
||||||
|
}
|
||||||
|
|
||||||
obj = rb_funcall( cDate, s_new, 3, year, mon, day );
|
obj = rb_funcall( cDate, s_new, 3, year, mon, day );
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче