ext/bdb1/bdb1.h in bdb1-0.2.4 vs ext/bdb1/bdb1.h in bdb1-0.2.5
- old
+ new
@@ -1,31 +1,7 @@
#include <ruby.h>
-#ifndef StringValue
-#define StringValue(x,y) do { \
- if (TYPE(x) != T_STRING) x = rb_str_to_str(x); \
-} while(0)
-#endif
-
-#ifndef StringValuePtr
-#define StringValuePtr(x) STR2CSTR(x)
-#endif
-
-#ifndef SafeStringValue
-#define SafeStringValue(x) Check_SafeStr(x)
-#endif
-
-#ifndef RSTRING_PTR
-# define RSTRING_PTR(x_) RSTRING(x_)->ptr
-# define RSTRING_LEN(x_) RSTRING(x_)->len
-#endif
-
-#ifndef RARRAY_PTR
-# define RARRAY_PTR(x_) RARRAY(x_)->ptr
-# define RARRAY_LEN(x_) RARRAY(x_)->len
-#endif
-
#ifdef COMPAT185
#include <db_185.h>
#else
#include <db.h>
#endif
@@ -138,15 +114,15 @@
extern void bdb1_deleg_free _((struct deleg_class *));
extern VALUE bdb1_init _((int, VALUE *, VALUE));
extern VALUE bdb1_put _((int, VALUE *, VALUE));
extern VALUE bdb1_get _((int, VALUE *, VALUE));
extern VALUE bdb1_del _((VALUE, VALUE));
-extern VALUE bdb1_test_load _((VALUE, DBT *, int));
+extern VALUE bdb1_test_load _((VALUE, const DBT *, int));
extern int bdb1_test_error _((int));
extern VALUE bdb1_each_value _((VALUE));
extern VALUE bdb1_each_eulav _((VALUE));
extern VALUE bdb1_each_key _((VALUE));
-extern VALUE bdb1_index _((VALUE, VALUE));
+extern VALUE bdb1_key _((VALUE, VALUE));
extern VALUE bdb1_has_value _((VALUE, VALUE));
extern VALUE bdb1_internal_value _((VALUE, VALUE, VALUE, int));
extern VALUE bdb1_to_type _((VALUE, VALUE, VALUE));
extern VALUE bdb1_clear _((VALUE));
extern VALUE bdb1_each_vc _((VALUE, int, int));