summaryrefslogtreecommitdiff
path: root/io.h
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1996-12-25 00:33:19 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:32 +0900
commitce930d042913722f209bbd3209b6c90a3c71325f (patch)
tree7233482f90335a8247ef426607622a8cad067a97 /io.h
parent554b989ba1623b9f6a0b76f00824c83a23fbcbc1 (diff)
version 1.0-961225v1_0_961225
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-1.0-961225.tar.gz Wed Dec 25 00:33:19 1996 Yukihiro Matsumoto <matz@caelum.co.jp> * version 1.0-961225 * io.c (Init_IO): newを無効化 * lib/tkthcore.rb: tk_call "global $foo; set foo 5"などもできるように * eval.c (thread_restore_context): $~, $_でスタックを壊していた * process.c (rb_waitpid): threadに一応対応
Diffstat (limited to 'io.h')
-rw-r--r--io.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/io.h b/io.h
index 2817835ef3..bc15d46e0e 100644
--- a/io.h
+++ b/io.h
@@ -4,7 +4,7 @@
$Author: matz $
$Revision: 1.3 $
- $Date: 1994/08/12 11:06:42 $
+ $Date: 1996/12/25 11:06:42 $
created at: Fri Nov 12 16:47:09 JST 1993
Copyright (C) 1993-1996 Yukihiro Matsumoto
@@ -33,7 +33,9 @@ typedef struct OpenFile {
#define FMODE_READWRITE 3
#define FMODE_SYNC 4
-#define GetOpenFile(obj,fp) fp = RFILE(obj)->fptr
+void io_wrong_type();
+
+#define GetOpenFile(obj,fp) ((fp) = RFILE(obj)->fptr)
#define MakeOpenFile(obj, fp) do {\
fp = RFILE(obj)->fptr = ALLOC(OpenFile);\