mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2000-03-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c13dd59db
commit
688169fd83
17 changed files with 995 additions and 314 deletions
1
rubyio.h
1
rubyio.h
|
|
@ -35,6 +35,7 @@ typedef struct OpenFile {
|
|||
#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(obj)->fptr)
|
||||
|
||||
#define MakeOpenFile(obj, fp) do {\
|
||||
fp = 0;\
|
||||
fp = RFILE(obj)->fptr = ALLOC(OpenFile);\
|
||||
fp->f = fp->f2 = NULL;\
|
||||
fp->mode = 0;\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue