summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-15 10:21:01 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-15 10:21:01 +0000
commit85b57498258b401a46c07d0af32ff4ea775b0ef1 (patch)
tree2cab673249b30f9afa2951687b5c7506ebc71f34 /io.c
parent8389728652450fba1821111d453a7a950d579b70 (diff)
downloadruby-85b57498258b401a46c07d0af32ff4ea775b0ef1.tar.gz
ruby-85b57498258b401a46c07d0af32ff4ea775b0ef1.tar.xz
ruby-85b57498258b401a46c07d0af32ff4ea775b0ef1.zip
* io.c: #undef rb_argv moved before #define.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io.c b/io.c
index 59fd37861..9524894ea 100644
--- a/io.c
+++ b/io.c
@@ -5037,6 +5037,7 @@ argf_alloc(VALUE klass)
return argf;
}
+#undef rb_argv
#define filename ARGF.filename
#define current_file ARGF.current_file
#define gets_lineno ARGF.gets_lineno
@@ -7244,8 +7245,6 @@ rb_get_argv(void)
return rb_argv;
}
-#undef rb_argv
-
/*
* Class <code>IO</code> is the basis for all input and output in Ruby.
* An I/O stream may be <em>duplexed</em> (that is, bidirectional), and