#include "ruby.h"
#include <gdbm.h>
#include <fcntl.h>
#include <errno.h>
Go to the source code of this file.
◆ GetDBM
#define GetDBM |
( |
|
obj, |
|
|
|
dbmp |
|
) |
| |
Value:do {\
TypedData_Get_Struct((obj),
struct dbmdata, &dbm_type, (dbmp));\
if ((dbmp) == 0) closed_dbm();\
if ((dbmp)->di_dbm == 0) closed_dbm();\
} while (0)
if(len<=MAX_WORD_LENGTH &&len >=MIN_WORD_LENGTH)
Definition at line 103 of file gdbm.c.
◆ GetDBM2
#define GetDBM2 |
( |
|
obj, |
|
|
|
dbmp, |
|
|
|
dbm |
|
) |
| |
Value:do {\
GetDBM((obj), (dbmp));\
(dbm) = (dbmp)->di_dbm;\
} while (0)
Definition at line 109 of file gdbm.c.
◆ MY_BLOCK_SIZE
#define MY_BLOCK_SIZE (2048) |
◆ MY_FATAL_FUNC
#define MY_FATAL_FUNC rb_gdbm_fatal |
◆ RUBY_GDBM_RW_BIT
#define RUBY_GDBM_RW_BIT 0x20000000 |
◆ TOO_LONG
◆ Init_gdbm()