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

* dir.c (dir_tell): check if closed. [ruby-core:16223]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-04-06 00:45:02 +00:00
parent 968e827e15
commit 0b3a667f53
3 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Sun Apr 6 09:45:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (dir_tell): check if closed. [ruby-core:16223]
Sat Apr 5 23:17:20 2008 Tadayoshi Funaba <tadf@dotrb.org>
* lib/cmath.rb: new.

2
dir.c
View file

@ -580,7 +580,7 @@ dir_tell(VALUE dir)
struct dir_data *dirp;
long pos;
Data_Get_Struct(dir, struct dir_data, dirp);
GetDIR(dir, dirp);
pos = telldir(dirp->dir);
return rb_int2inum(pos);
#else

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2008-04-04"
#define RUBY_RELEASE_DATE "2008-04-06"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20080404
#define RUBY_RELEASE_CODE 20080406
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2008
#define RUBY_RELEASE_MONTH 4
#define RUBY_RELEASE_DAY 4
#define RUBY_RELEASE_DAY 6
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];