summaryrefslogtreecommitdiff
path: root/ext/io/console/console.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-13 14:06:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-13 14:06:35 +0000
commit3254c1bf24207b0c155e8e0b9427cf9709c8c8ca (patch)
tree138ec9ebfb71399138cb65452d78e498642da55c /ext/io/console/console.c
parenta72f0334472ab7f51d62d7eff6b13dc4c7f7002f (diff)
* ext/io/console/console.c (console_dev): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/console/console.c')
-rw-r--r--ext/io/console/console.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index 9ccb4520858..cc4ab113809 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -544,33 +544,33 @@ console_dev(VALUE klass)
{
VALUE args[2];
#if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H || defined HAVE_SGTTY_H
-# define CONSOLE_DEVISE "/dev/tty"
+# define CONSOLE_DEVICE "/dev/tty"
#elif defined _WIN32
-# define CONSOLE_DEVISE "con$"
-# define CONSOLE_DEVISE_FOR_READING "conin$"
-# define CONSOLE_DEVISE_FOR_WRITING "conout$"
+# define CONSOLE_DEVICE "con$"
+# define CONSOLE_DEVICE_FOR_READING "conin$"
+# define CONSOLE_DEVICE_FOR_WRITING "conout$"
#endif
-#ifndef CONSOLE_DEVISE_FOR_READING
-# define CONSOLE_DEVISE_FOR_READING CONSOLE_DEVISE
+#ifndef CONSOLE_DEVICE_FOR_READING
+# define CONSOLE_DEVICE_FOR_READING CONSOLE_DEVICE
#endif
-#ifdef CONSOLE_DEVISE_FOR_WRITING
+#ifdef CONSOLE_DEVICE_FOR_WRITING
VALUE out;
rb_io_t *ofptr;
#endif
args[1] = INT2FIX(O_RDWR);
-#ifdef CONSOLE_DEVISE_FOR_WRITING
- args[0] = rb_str_new2(CONSOLE_DEVISE_FOR_WRITING);
+#ifdef CONSOLE_DEVICE_FOR_WRITING
+ args[0] = rb_str_new2(CONSOLE_DEVICE_FOR_WRITING);
out = rb_class_new_instance(2, args, klass);
#endif
- args[0] = rb_str_new2(CONSOLE_DEVISE_FOR_READING);
+ args[0] = rb_str_new2(CONSOLE_DEVICE_FOR_READING);
con = rb_class_new_instance(2, args, klass);
-#ifdef CONSOLE_DEVISE_FOR_WRITING
+#ifdef CONSOLE_DEVICE_FOR_WRITING
GetOpenFile(con, fptr);
GetOpenFile(out, ofptr);
# ifdef HAVE_RB_IO_GET_WRITE_IO
# ifdef _WIN32
- ofptr->pathv = fptr->pathv = rb_str_new2(CONSOLE_DEVISE);
+ ofptr->pathv = fptr->pathv = rb_str_new2(CONSOLE_DEVICE);
# endif
fptr->tied_io_for_writing = out;
# else