ext/winsize.c in winsize-1.0.1 vs ext/winsize.c in winsize-2.0.0
- old
+ new
@@ -1,9 +1,9 @@
-#include "ruby.h"
#include <sys/ioctl.h>
+#include "ruby.h"
void Init_winsize()
{
- VALUE rb_mWinSize = rb_define_module("Winsize");
- rb_define_const(rb_mWinSize, "TIOCGWINSZ", ULONG2NUM(TIOCGWINSZ));
- rb_define_const(rb_mWinSize, "TIOCSWINSZ", ULONG2NUM(TIOCSWINSZ));
+ VALUE rb_cWinSize = rb_define_class("Winsize", rb_cObject);
+ rb_define_const(rb_cWinSize, "TIOCGWINSZ", ULONG2NUM(TIOCGWINSZ));
+ rb_define_const(rb_cWinSize, "TIOCSWINSZ", ULONG2NUM(TIOCSWINSZ));
}