Ruby
2.4.2p198(2017-09-14revision59899)
|
Go to the source code of this file.
Data Structures | |
struct | dbmdata |
Macros | |
#define | GetDBM(obj, dbmp) |
#define | GetDBM2(obj, dbmp, dbm) |
Variables | |
static VALUE | rb_cDBM |
static VALUE | rb_eDBMError |
static const rb_data_type_t | sdbm_type |
#define GetDBM | ( | obj, | |
dbmp | |||
) |
Definition at line 80 of file init.c.
Referenced by fsdbm_close(), and fsdbm_empty_p().
#define GetDBM2 | ( | obj, | |
dbmp, | |||
dbm | |||
) |
Definition at line 86 of file init.c.
Referenced by fsdbm_clear(), fsdbm_delete(), fsdbm_delete_if(), fsdbm_each_key(), fsdbm_each_pair(), fsdbm_each_value(), fsdbm_fetch(), fsdbm_has_key(), fsdbm_has_value(), fsdbm_invert(), fsdbm_key(), fsdbm_keys(), fsdbm_length(), fsdbm_select(), fsdbm_shift(), fsdbm_store(), fsdbm_to_a(), fsdbm_to_hash(), and fsdbm_values().
|
static |
Definition at line 75 of file init.c.
References rb_eDBMError, and rb_raise().
|
static |
Definition at line 416 of file init.c.
References OBJ_FROZEN, and rb_error_frozen().
Referenced by fsdbm_clear(), fsdbm_delete(), fsdbm_delete_if(), fsdbm_shift(), and fsdbm_store().
|
static |
Definition at line 92 of file init.c.
References dbmdata::di_dbm, ruby_xfree(), and sdbm_close().
Definition at line 160 of file init.c.
References TypedData_Wrap_Struct.
Referenced by fsdbm_s_open(), and Init_sdbm().
Definition at line 283 of file init.c.
References fsdbm_fetch(), and Qnil.
Referenced by Init_sdbm().
Definition at line 553 of file init.c.
References dbmdata::di_size, datum::dptr, fdbm_modify(), GetDBM2, key, rb_eDBMError, rb_raise(), sdbm_delete(), and sdbm_firstkey().
Referenced by fsdbm_replace(), and Init_sdbm().
Definition at line 128 of file init.c.
References dbmdata::di_dbm, GetDBM, Qnil, and sdbm_close().
Referenced by fsdbm_s_open(), and Init_sdbm().
Definition at line 146 of file init.c.
References dbmdata::di_dbm, Qfalse, Qtrue, and TypedData_Get_Struct.
Referenced by Init_sdbm().
Definition at line 434 of file init.c.
References dbmdata::di_size, datum::dptr, datum::dsize, ExportStringValue, fdbm_modify(), GetDBM2, key, Qnil, rb_block_given_p(), rb_eDBMError, rb_external_str_new(), rb_raise(), rb_yield(), RSTRING_LENINT, RSTRING_PTR, sdbm_delete(), and sdbm_fetch().
Referenced by fsdbm_store(), and Init_sdbm().
Definition at line 507 of file init.c.
References dbmdata::di_size, datum::dptr, datum::dsize, ExportStringValue, fdbm_modify(), GetDBM2, key, RARRAY_AREF, RARRAY_LEN, RARRAY_LENINT, rb_ary_new(), rb_ary_push(), rb_assoc_new(), rb_eDBMError, rb_external_str_new(), rb_jump_tag(), rb_protect(), rb_raise(), rb_str_dup(), rb_yield(), RSTRING_LENINT, RSTRING_PTR, RTEST, sdbm_delete(), sdbm_fetch(), sdbm_firstkey(), sdbm_nextkey(), and val.
Referenced by Init_sdbm().
Definition at line 791 of file init.c.
References datum::dptr, datum::dsize, GetDBM2, key, rb_external_str_new(), rb_yield(), RETURN_ENUMERATOR, sdbm_firstkey(), and sdbm_nextkey().
Referenced by Init_sdbm().
Definition at line 819 of file init.c.
References datum::dptr, datum::dsize, GetDBM2, key, rb_assoc_new(), rb_external_str_new(), rb_yield(), RETURN_ENUMERATOR, sdbm_fetch(), sdbm_firstkey(), sdbm_nextkey(), and val.
Referenced by Init_sdbm().
Definition at line 764 of file init.c.
References datum::dptr, datum::dsize, GetDBM2, key, rb_external_str_new(), rb_yield(), RETURN_ENUMERATOR, sdbm_fetch(), sdbm_firstkey(), sdbm_nextkey(), and val.
Referenced by Init_sdbm().
Definition at line 733 of file init.c.
References dbmdata::di_dbm, dbmdata::di_size, datum::dptr, GetDBM, key, Qfalse, Qtrue, sdbm_firstkey(), and sdbm_nextkey().
Referenced by Init_sdbm().
Definition at line 254 of file init.c.
References datum::dptr, datum::dsize, ExportStringValue, GetDBM2, key, Qnil, rb_block_given_p(), rb_external_str_new(), rb_yield(), RSTRING_LENINT, RSTRING_PTR, and sdbm_fetch().
Referenced by fsdbm_aref(), fsdbm_fetch_m(), and fsdbm_values_at().
Definition at line 303 of file init.c.
References fsdbm_fetch(), NIL_P, rb_block_given_p(), rb_eIndexError, rb_raise(), and rb_scan_args().
Referenced by Init_sdbm().
Definition at line 897 of file init.c.
References datum::dptr, datum::dsize, ExportStringValue, GetDBM2, key, Qfalse, Qtrue, RSTRING_LENINT, RSTRING_PTR, sdbm_fetch(), and val.
Referenced by Init_sdbm().
Definition at line 921 of file init.c.
References datum::dptr, datum::dsize, ExportStringValue, GetDBM2, key, memcmp(), Qfalse, Qtrue, RSTRING_LENINT, RSTRING_PTR, sdbm_fetch(), sdbm_firstkey(), sdbm_nextkey(), and val.
Referenced by Init_sdbm().
Definition at line 348 of file init.c.
References fsdbm_key(), and rb_warn().
Referenced by Init_sdbm().
Definition at line 180 of file init.c.
References ALLOC, DATA_PTR, dbmdata::di_dbm, dbmdata::di_size, FilePathValue, NIL_P, NUM2INT, Qnil, rb_scan_args(), rb_sys_fail_str(), RSTRING_PTR, and sdbm_open().
Referenced by fsdbm_s_open(), and Init_sdbm().
Definition at line 589 of file init.c.
References datum::dptr, datum::dsize, GetDBM2, hash(), key, rb_external_str_new(), rb_hash_aset(), rb_hash_new(), sdbm_fetch(), sdbm_firstkey(), sdbm_nextkey(), and val.
Referenced by Init_sdbm().
Definition at line 324 of file init.c.
References datum::dptr, datum::dsize, ExportStringValue, GetDBM2, key, memcmp(), Qnil, rb_external_str_new(), RSTRING_LEN, RSTRING_LENINT, RSTRING_PTR, sdbm_fetch(), sdbm_firstkey(), sdbm_nextkey(), and val.
Referenced by fsdbm_index(), and Init_sdbm().
Definition at line 847 of file init.c.
References datum::dptr, datum::dsize, GetDBM2, key, rb_ary_new(), rb_ary_push(), rb_external_str_new(), sdbm_firstkey(), and sdbm_nextkey().
Referenced by Init_sdbm().
Definition at line 708 of file init.c.
References dbmdata::di_size, datum::dptr, GetDBM2, INT2FIX, key, sdbm_firstkey(), and sdbm_nextkey().
Referenced by Init_sdbm().
Definition at line 1010 of file init.c.
References fsdbm_to_hash(), and rb_hash_delete_if().
Referenced by Init_sdbm().
Definition at line 693 of file init.c.
References fsdbm_clear(), rb_block_call(), rb_intern, and update_i().
Referenced by Init_sdbm().
Definition at line 238 of file init.c.
References fsdbm_alloc(), fsdbm_close(), fsdbm_initialize(), NIL_P, Qnil, rb_block_given_p(), rb_ensure(), and rb_yield().
Referenced by Init_sdbm().
Definition at line 374 of file init.c.
References datum::dptr, datum::dsize, GetDBM2, key, rb_ary_new(), rb_ary_push(), rb_assoc_new(), rb_external_str_new(), rb_yield(), RTEST, sdbm_fetch(), sdbm_firstkey(), sdbm_nextkey(), and val.
Referenced by Init_sdbm().
Definition at line 476 of file init.c.
References dbmdata::di_size, datum::dptr, datum::dsize, fdbm_modify(), GetDBM2, key, Qnil, rb_assoc_new(), rb_external_str_new(), sdbm_delete(), sdbm_fetch(), sdbm_firstkey(), and val.
Referenced by Init_sdbm().
Definition at line 620 of file init.c.
References DBM_REPLACE, dbmdata::di_size, datum::dptr, datum::dsize, EPERM, errno, ExportStringValue, fdbm_modify(), fsdbm_delete(), GetDBM2, key, Qnil, rb_eDBMError, rb_raise(), rb_sys_fail(), RSTRING_LENINT, RSTRING_PTR, sdbm_clearerr, sdbm_store(), and val.
Referenced by Init_sdbm(), and update_i().
Definition at line 958 of file init.c.
References datum::dptr, datum::dsize, GetDBM2, key, rb_ary_new(), rb_ary_push(), rb_assoc_new(), rb_external_str_new(), sdbm_fetch(), sdbm_firstkey(), sdbm_nextkey(), and val.
Referenced by Init_sdbm().
Definition at line 983 of file init.c.
References datum::dptr, datum::dsize, GetDBM2, hash(), key, rb_external_str_new(), rb_hash_aset(), rb_hash_new(), sdbm_fetch(), sdbm_firstkey(), sdbm_nextkey(), and val.
Referenced by fsdbm_reject(), and Init_sdbm().
Definition at line 677 of file init.c.
References rb_block_call(), rb_intern, and update_i().
Referenced by Init_sdbm().
Definition at line 870 of file init.c.
References datum::dptr, datum::dsize, GetDBM2, key, rb_ary_new(), rb_ary_push(), rb_external_str_new(), sdbm_fetch(), sdbm_firstkey(), sdbm_nextkey(), and val.
Referenced by Init_sdbm().
Definition at line 403 of file init.c.
References argc, fsdbm_fetch(), Qnil, rb_ary_new2, and rb_ary_push().
Referenced by Init_sdbm().
void Init_sdbm | ( | void | ) |
Definition at line 1016 of file init.c.
References fsdbm_alloc(), fsdbm_aref(), fsdbm_clear(), fsdbm_close(), fsdbm_closed(), fsdbm_delete(), fsdbm_delete_if(), fsdbm_each_key(), fsdbm_each_pair(), fsdbm_each_value(), fsdbm_empty_p(), fsdbm_fetch_m(), fsdbm_has_key(), fsdbm_has_value(), fsdbm_index(), fsdbm_initialize(), fsdbm_invert(), fsdbm_key(), fsdbm_keys(), fsdbm_length(), fsdbm_reject(), fsdbm_replace(), fsdbm_s_open(), fsdbm_select(), fsdbm_shift(), fsdbm_store(), fsdbm_to_a(), fsdbm_to_hash(), fsdbm_update(), fsdbm_values(), fsdbm_values_at(), rb_cDBM, rb_cObject, rb_define_alloc_func(), rb_define_class(), rb_define_method(), rb_define_singleton_method(), rb_eDBMError, rb_eStandardError, rb_include_module(), and rb_mEnumerable.
|
static |
Definition at line 101 of file init.c.
References dbmdata::di_dbm, and size.
|
static |
Definition at line 655 of file init.c.
References Check_Type, fsdbm_store(), Qnil, RARRAY_CONST_PTR, RARRAY_LEN, rb_eArgError, rb_raise(), and T_ARRAY.
Referenced by fsdbm_replace(), and fsdbm_update().
|
static |
Definition at line 67 of file init.c.
Referenced by Init_sdbm().
|
static |
Definition at line 67 of file init.c.
Referenced by closed_sdbm(), fsdbm_clear(), fsdbm_delete(), fsdbm_delete_if(), fsdbm_store(), and Init_sdbm().
|
static |