Ruby  2.5.0dev(2017-10-22revision60238)
Data Structures | Macros | Functions
init.c File Reference
#include "ruby.h"
#include "sdbm.h"
#include <fcntl.h>
#include <errno.h>

Go to the source code of this file.

Data Structures

struct  dbmdata
 

Macros

#define GetDBM(obj, dbmp)
 
#define GetDBM2(obj, dbmp, dbm)
 

Functions

void Init_sdbm (void)
 

Macro Definition Documentation

◆ GetDBM

#define GetDBM (   obj,
  dbmp 
)
Value:
do {\
TypedData_Get_Struct((obj), struct dbmdata, &sdbm_type, (dbmp));\
if ((dbmp) == 0) closed_sdbm();\
if ((dbmp)->di_dbm == 0) closed_sdbm();\
} while (0)
if(len<=MAX_WORD_LENGTH &&len >=MIN_WORD_LENGTH)
Definition: zonetab.h:883
Definition: dbm.c:37

Definition at line 80 of file init.c.

◆ GetDBM2

#define GetDBM2 (   obj,
  dbmp,
  dbm 
)
Value:
do {\
GetDBM((obj), (dbmp));\
(dbm) = (dbmp)->di_dbm;\
} while (0)

Definition at line 86 of file init.c.

Function Documentation

◆ Init_sdbm()

void Init_sdbm ( void  )

Definition at line 1016 of file init.c.