diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-14 09:04:43 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-14 09:04:43 +0000 |
commit | f34f20ebc5ef12d37315d8228ba21b6cd4bcb9a1 (patch) | |
tree | c91af57d9eab1255f6710aea3de3cd3fb313494b /rubyio.h | |
parent | 0b4c9491ec5eba33edd2cebb591d7531b7b54d76 (diff) | |
download | ruby-f34f20ebc5ef12d37315d8228ba21b6cd4bcb9a1.tar.gz |
* rubyio.h (struct OpenFile): add error raise flag to finalizer.
* io.c (Init_IO): define $/, $-0, and $\ as string-only
variables.
* string.c (rb_str_split_m): does not generate empty string if
there's no match in the receiver.
* io.c (fptr_finalize): should raise error on EBADF for readable
IOs as well.
* file.c (rb_stat): use rb_check_convert_type() to retrieve IO.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubyio.h')
-rw-r--r-- | rubyio.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ typedef struct OpenFile { int pid; /* child's pid (for pipes) */ int lineno; /* number of lines read */ char *path; /* pathname for file */ - void (*finalize) _((struct OpenFile*)); /* finalize proc */ + void (*finalize) _((struct OpenFile*,int)); /* finalize proc */ } OpenFile; #define FMODE_READABLE 1 |