#ifndef SQLITE3_RUBY #define SQLITE3_RUBY #include #ifdef UNUSED #elif defined(__GNUC__) # define UNUSED(x) UNUSED_ ## x __attribute__((unused)) #elif defined(__LCLINT__) # define UNUSED(x) /*@unused@*/ x #else # define UNUSED(x) x #endif #ifndef RBIGNUM_LEN #define RBIGNUM_LEN(x) RBIGNUM(x)->len #endif #ifdef HAVE_RUBY_ENCODING_H #include #define UTF8_P(_obj) (rb_enc_get_index(_obj) == rb_utf8_encindex()) #define UTF16_LE_P(_obj) (rb_enc_get_index(_obj) == rb_enc_find_index("UTF-16LE")) #define SQLITE3_UTF8_STR_NEW2(_obj) \ (rb_enc_associate_index(rb_str_new2(_obj), rb_utf8_encindex())) #else #define SQLITE3_UTF8_STR_NEW2(_obj) (rb_str_new2(_obj)) #endif #include extern VALUE mSqlite3; extern VALUE cSqlite3Blob; #include #include #include #endif