Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

st.h File Reference

Go to the source code of this file.

Data Structures

struct  st_hash_type
struct  st_table

Defines

#define ST_DATA_T_DEFINED
#define st_is_member(table, key)   st_lookup(table,key,(st_data_t *)0)
#define args   args
#define ANYARGS
#define ST_NUMCMP   ((int (*)()) 0)
#define ST_NUMHASH   ((int (*)()) -2)
#define st_numcmp   ST_NUMCMP
#define st_numhash   ST_NUMHASH

Typedefs

typedef unsigned long st_data_t
typedef st_table st_table

Enumerations

enum  st_retval { ST_CONTINUE, ST_STOP, ST_DELETE, ST_CHECK }

Functions

st_tablest_init_table (struct st_hash_type *)
st_tablest_init_table_with_size (struct st_hash_type *, int)
st_tablest_init_numtable (void)
st_tablest_init_numtable_with_size (int)
st_tablest_init_strtable (void)
st_tablest_init_strtable_with_size (int)
int st_delete (st_table *, st_data_t *, st_data_t *)
int st_delete_safe (st_table *, st_data_t *, st_data_t *, st_data_t)
int st_insert (st_table *, st_data_t, st_data_t)
int st_lookup (st_table *, st_data_t, st_data_t *)
int st_foreach (st_table *, int(*(ANYARGS), st_data_t))
void st_add_direct (st_table *, st_data_t, st_data_t)
void st_free_table (st_table *)
void st_cleanup_safe (st_table *, st_data_t)
st_tablest_copy (st_table *)
int st_strhash ()


Define Documentation

#define ANYARGS
 

Definition at line 37 of file st.h.

#define args   args
 

Definition at line 31 of file st.h.

#define ST_DATA_T_DEFINED
 

Definition at line 10 of file st.h.

#define st_is_member table,
key   )     st_lookup(table,key,(st_data_t *)0)
 

Definition at line 26 of file st.h.

#define st_numcmp   ST_NUMCMP
 

Definition at line 60 of file st.h.

#define ST_NUMCMP   ((int (*)()) 0)
 

Definition at line 57 of file st.h.

#define st_numhash   ST_NUMHASH
 

Definition at line 61 of file st.h.

#define ST_NUMHASH   ((int (*)()) -2)
 

Definition at line 58 of file st.h.


Typedef Documentation

typedef unsigned long st_data_t
 

Definition at line 9 of file st.h.

Referenced by autoload_delete(), autoload_file(), class_instance_method_list(), classname(), clone_method(), delete_never(), fc_i(), find_class_path(), foreach_safe_i(), generic_ivar_defined(), generic_ivar_get(), generic_ivar_remove(), generic_ivar_set(), hash_equal(), hash_foreach_call(), hash_foreach_iter(), load_wait(), rb_add_method(), rb_alias(), rb_alias_variable(), rb_ary_and(), rb_ary_or(), rb_ary_uniq_bang(), rb_autoload(), rb_copy_generic_ivar(), rb_eval(), rb_f_untrace_var(), rb_free_generic_ivar(), rb_generic_ivar_table(), rb_global_entry(), rb_hash_delete(), rb_hash_has_value(), rb_hash_index(), rb_hash_rehash(), rb_hash_shift(), rb_id2name(), rb_intern(), rb_mark_generic_ivar(), rb_mod_const_at(), rb_mod_init_copy(), rb_mod_remove_const(), rb_mod_remove_cvar(), rb_obj_instance_variables(), rb_obj_remove_instance_variable(), rb_obj_singleton_methods(), rb_provided(), rb_require_safe(), rb_singleton_class_clone(), rb_source_filename(), rb_thread_local_aset(), rb_waitpid(), remove_method(), run_final(), search_method(), st_add_direct(), st_cleanup_safe(), st_delete(), st_delete_safe(), st_foreach(), st_foreach_safe(), st_insert(), st_lookup(), undefine_final(), w_ivar(), w_object(), and w_symbol().

typedef struct st_table st_table
 

Definition at line 12 of file st.h.


Enumeration Type Documentation

enum st_retval
 

Enumeration values:
ST_CONTINUE 
ST_STOP 
ST_DELETE 
ST_CHECK 

Definition at line 28 of file st.h.

Referenced by st_foreach().


Function Documentation

void st_add_direct st_table ,
st_data_t  ,
st_data_t 
 

Definition at line 298 of file st.c.

References ADD_DIRECT, do_hash, and st_data_t.

Referenced by boot_defclass(), define_final(), generic_ivar_set(), method_entry(), rb_alias_variable(), rb_autoload(), rb_copy_generic_ivar(), rb_define_class(), rb_define_module(), rb_global_entry(), rb_hash_aset(), rb_intern(), rb_source_filename(), set_syserr(), w_object(), and w_symbol().

void st_cleanup_safe st_table ,
st_data_t 
 

Definition at line 459 of file st.c.

References delete_never(), st_data_t, and st_foreach().

Referenced by hash_foreach_ensure().

st_table* st_copy st_table  ) 
 

Definition at line 337 of file st.c.

References alloc, st_table::bins, Calloc, free, st_table_entry::next, and st_table_entry.

Referenced by init_copy(), rb_copy_generic_ivar(), rb_hash_s_create(), rb_mod_init_copy(), and rb_singleton_class_clone().

int st_delete st_table ,
st_data_t ,
st_data_t
 

Definition at line 378 of file st.c.

References do_hash_bin, EQUAL, free, st_table_entry::key, st_table_entry::next, st_table_entry::record, st_data_t, and st_table_entry.

Referenced by autoload_delete(), autoload_file(), classname(), find_class_path(), generic_ivar_remove(), rb_ary_and(), rb_ary_or(), rb_ary_uniq_bang(), rb_free_generic_ivar(), rb_hash_delete(), rb_mod_init_copy(), rb_mod_remove_const(), rb_mod_remove_cvar(), rb_obj_remove_instance_variable(), rb_require_safe(), rb_thread_local_aset(), rb_waitpid(), remove_method(), run_final(), and undefine_final().

int st_delete_safe st_table ,
st_data_t ,
st_data_t ,
st_data_t 
 

Definition at line 420 of file st.c.

References do_hash_bin, EQUAL, st_table_entry::key, st_table_entry::next, st_table_entry::record, st_data_t, and st_table_entry.

Referenced by hash_foreach_iter(), and rb_hash_delete().

int st_foreach st_table ,
int(*(ANYARGS), st_data_t
 

Referenced by class_instance_method_list(), find_class_path(), gc_sweep(), givar_i(), hash_foreach_call(), mark_hash(), mark_tbl(), proc_waitall(), rb_const_list(), rb_f_global_variables(), rb_gc_mark_global_tbl(), rb_mod_init_copy(), rb_obj_singleton_methods(), rb_singleton_class_clone(), rb_sym_all_symbols(), rb_thread_keys(), st_cleanup_safe(), and st_foreach_safe().

void st_free_table st_table  ) 
 

Definition at line 197 of file st.c.

References free, st_table_entry::next, and st_table_entry.

Referenced by autoload_delete(), autoload_file(), check_autoload_table(), class_instance_method_list(), dump_ensure(), generic_ivar_remove(), init_copy(), load_ensure(), obj_free(), rb_autoload(), rb_const_list(), rb_copy_generic_ivar(), rb_free_generic_ivar(), rb_hash_rehash(), rb_obj_singleton_methods(), and thread_free().

st_table* st_init_numtable void   ) 
 

Definition at line 171 of file st.c.

References st_init_table(), and type_numhash.

Referenced by class_instance_method_list(), define_final(), find_class_path(), generic_ivar_set(), include_class_new(), Init_Exception(), Init_var_tables(), marshal_dump(), marshal_load(), mod_av_set(), rb_autoload(), rb_class_boot(), rb_ivar_set(), rb_mod_const_at(), rb_mod_init_copy(), rb_module_new(), rb_obj_singleton_methods(), rb_singleton_class_attached(), rb_singleton_class_clone(), rb_thread_local_aset(), and rb_waitpid().

st_table* st_init_numtable_with_size int   ) 
 

Definition at line 177 of file st.c.

References st_init_table_with_size(), and type_numhash.

Referenced by Init_sym().

st_table* st_init_strtable void   ) 
 

Definition at line 184 of file st.c.

References st_init_table(), and type_strhash.

Referenced by Init_GC(), and rb_require_safe().

st_table* st_init_strtable_with_size int   ) 
 

Definition at line 190 of file st.c.

References st_init_table_with_size(), and type_strhash.

Referenced by Init_sym().

st_table* st_init_table struct st_hash_type  ) 
 

Definition at line 164 of file st.c.

References st_init_table_with_size().

Referenced by hash_alloc(), st_init_numtable(), and st_init_strtable().

st_table* st_init_table_with_size struct st_hash_type ,
int 
 

Definition at line 139 of file st.c.

References alloc, st_table::bins, Calloc, new_size(), st_table::num_bins, st_table::num_entries, st_table_entry, and st_table::type.

Referenced by rb_hash_rehash(), st_init_numtable_with_size(), st_init_strtable_with_size(), and st_init_table().

int st_insert st_table ,
st_data_t  ,
st_data_t 
 

Definition at line 276 of file st.c.

References ADD_DIRECT, do_hash, FIND_ENTRY, st_table_entry::record, st_data_t, and st_table_entry.

Referenced by classname(), clone_method(), find_class_path(), generic_ivar_set(), mod_av_set(), r_symreal(), rb_add_method(), rb_alias(), rb_autoload(), rb_copy_generic_ivar(), rb_cvar_set(), rb_gc_copy_finalizer(), rb_hash_aset(), rb_hash_rehash_i(), rb_ivar_set(), rb_require_safe(), rb_singleton_class_attached(), rb_thread_local_aset(), rb_waitpid(), and sv_i().

int st_lookup st_table ,
st_data_t  ,
st_data_t
 

Definition at line 237 of file st.c.

References do_hash, FIND_ENTRY, st_table_entry::record, st_data_t, and st_table_entry.

Referenced by autoload_delete(), autoload_file(), classname(), cvar_override_check(), define_final(), equal_i(), ev_const_defined(), ev_const_get(), fc_path(), generic_ivar_defined(), generic_ivar_get(), generic_ivar_remove(), generic_ivar_set(), get_syserr(), ivar_get(), load_wait(), method_entry(), mod_av_set(), r_symlink(), rb_alias(), rb_alias_variable(), rb_ary_diff(), rb_autoload(), rb_autoload_p(), rb_class_path(), rb_const_defined_0(), rb_const_get_0(), rb_copy_generic_ivar(), rb_cvar_defined(), rb_cvar_get(), rb_cvar_set(), rb_eval(), rb_f_untrace_var(), rb_gc_copy_finalizer(), rb_generic_ivar_table(), rb_global_entry(), rb_hash_aref(), rb_hash_aset(), rb_hash_fetch(), rb_hash_has_key(), rb_id2name(), rb_intern(), rb_ivar_defined(), rb_mark_generic_ivar(), rb_obj_instance_variables(), rb_provided(), rb_source_filename(), rb_thread_key_p(), rb_thread_local_aref(), rb_waitpid(), search_method(), set_syserr(), sv_i(), syserr_initialize(), w_object(), and w_symbol().

int st_strhash  ) 
 


Generated on Wed Jan 18 23:32:11 2006 for Ruby by doxygen 1.3.5