ext/winsize.c in winsize-1.0.0 vs ext/winsize.c in winsize-1.0.1

- old
+ new

@@ -1,9 +1,9 @@ #include "ruby.h" #include <sys/ioctl.h> void Init_winsize() { - VALUE rb_mWinSize = rb_define_module("Winsize"); - rb_const_set(rb_mWinSize, rb_intern("TIOCGWINSZ"), ULONG2NUM(TIOCGWINSZ)); - rb_const_set(rb_mWinSize, rb_intern("TIOCSWINSZ"), ULONG2NUM(TIOCSWINSZ)); + VALUE rb_mWinSize = rb_define_module("Winsize"); + rb_define_const(rb_mWinSize, "TIOCGWINSZ", ULONG2NUM(TIOCGWINSZ)); + rb_define_const(rb_mWinSize, "TIOCSWINSZ", ULONG2NUM(TIOCSWINSZ)); }