#include "ruby.h"
#include <fcntl.h>
#include <errno.h>
Go to the source code of this file.
◆ DSIZE_TYPE
#define DSIZE_TYPE TYPEOF_DATUM_DSIZE |
Definition at line 24 of file dbm.c.
◆ 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 48 of file dbm.c.
◆ GetDBM2
#define GetDBM2 |
( |
|
obj, |
|
|
|
dbmp, |
|
|
|
dbm |
|
) |
| |
Value:do {\
GetDBM((obj), (dbmp));\
(dbm) = (dbmp)->di_dbm;\
} while (0)
Definition at line 54 of file dbm.c.
◆ O_CLOEXEC
◆ RSTRING_DSIZE
Definition at line 29 of file dbm.c.
◆ RUBY_DBM_RW_BIT
#define RUBY_DBM_RW_BIT 0x20000000 |
Definition at line 35 of file dbm.c.
◆ TOO_LONG
#define TOO_LONG |
( |
|
n | ) |
((long)(+(DSIZE_TYPE)(n)) != (n)) |
Definition at line 30 of file dbm.c.
◆ Init_dbm()