Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# ext/fiddle/fiddle.c

Go to the documentation of this file.

    00001 #include <fiddle.h>
    00002
    00003 VALUE mFiddle;
    00004
    00005 void Init_fiddle()
    00006 {
    00007     mFiddle = rb_define_module("Fiddle");
    00008
    00009     rb_define_const(mFiddle, "TYPE_VOID",      INT2NUM(TYPE_VOID));
    00010     rb_define_const(mFiddle, "TYPE_VOIDP",     INT2NUM(TYPE_VOIDP));
    00011     rb_define_const(mFiddle, "TYPE_CHAR",      INT2NUM(TYPE_CHAR));
    00012     rb_define_const(mFiddle, "TYPE_SHORT",     INT2NUM(TYPE_SHORT));
    00013     rb_define_const(mFiddle, "TYPE_INT",       INT2NUM(TYPE_INT));
    00014     rb_define_const(mFiddle, "TYPE_LONG",      INT2NUM(TYPE_LONG));
    00015 #if HAVE_LONG_LONG
    00016     rb_define_const(mFiddle, "TYPE_LONG_LONG", INT2NUM(TYPE_LONG_LONG));
    00017 #endif
    00018     rb_define_const(mFiddle, "TYPE_FLOAT",     INT2NUM(TYPE_FLOAT));
    00019     rb_define_const(mFiddle, "TYPE_DOUBLE",    INT2NUM(TYPE_DOUBLE));
    00020
    00021 #if defined(HAVE_WINDOWS_H)
    00022     rb_define_const(mFiddle, "WINDOWS", Qtrue);
    00023 #else
    00024     rb_define_const(mFiddle, "WINDOWS", Qfalse);
    00025 #endif
    00026
    00027     Init_fiddle_function();
    00028     Init_fiddle_closure();
    00029 }
    00030 /* vim: set noet sws=4 sw=4: */
    00031