| Kannel: Open Source WAP and SMS gateway
    svn-r5336
    | 
Go to the source code of this file.
| Data Structures | |
| struct | WsHashItemRec | 
| struct | WsHashRec | 
| Macros | |
| #define | WS_HASH_TABLE_SIZE 256 | 
| Typedefs | |
| typedef struct WsHashItemRec | WsHashItem | 
| Functions | |
| static size_t | count_hash (const char *string) | 
| WsHashPtr | ws_hash_create (WsHashItemDestructor destructor, void *context) | 
| void | ws_hash_destroy (WsHashPtr hash) | 
| WsBool | ws_hash_put (WsHashPtr hash, const char *name, void *data) | 
| void * | ws_hash_get (WsHashPtr hash, const char *name) | 
| void | ws_hash_clear (WsHashPtr hash) | 
| #define WS_HASH_TABLE_SIZE 256 | 
Definition at line 76 of file wshash.c.
Referenced by count_hash(), and ws_hash_clear().
| typedef struct WsHashItemRec WsHashItem | 
| 
 | static | 
Definition at line 200 of file wshash.c.
References WS_HASH_TABLE_SIZE.
Referenced by ws_hash_get(), and ws_hash_put().
| void ws_hash_clear | ( | WsHashPtr | hash | ) | 
Definition at line 180 of file wshash.c.
References WsHashItemRec::data, WsHashRec::destructor, WsHashRec::destructor_context, WsHashRec::items, WsHashItemRec::name, WsHashItemRec::next, ws_free(), and WS_HASH_TABLE_SIZE.
Referenced by ws_hash_destroy().
| WsHashPtr ws_hash_create | ( | WsHashItemDestructor | destructor, | 
| void * | context | ||
| ) | 
Definition at line 103 of file wshash.c.
References WsHashRec::destructor, WsHashRec::destructor_context, and ws_calloc().
Referenced by ws_function_hash_create(), ws_pragma_use_hash_create(), and ws_variable_hash_create().
| void ws_hash_destroy | ( | WsHashPtr | hash | ) | 
Definition at line 116 of file wshash.c.
References ws_free(), and ws_hash_clear().
Referenced by compile_stream().
| void* ws_hash_get | ( | WsHashPtr | hash, | 
| const char * | name | ||
| ) | 
Definition at line 167 of file wshash.c.
References count_hash(), WsHashItemRec::data, WsHashRec::items, WsHashItemRec::name, name, and WsHashItemRec::next.
Referenced by ws_expr_linearize(), ws_function_hash(), ws_pragma_use(), ws_variable_define(), and ws_variable_lookup().
Definition at line 126 of file wshash.c.
References count_hash(), WsHashItemRec::data, WsHashRec::destructor, WsHashRec::destructor_context, WsHashRec::items, WsHashItemRec::name, name, WsHashItemRec::next, ws_calloc(), WS_FALSE, ws_free(), ws_strdup(), and WS_TRUE.
Referenced by ws_function_hash(), ws_pragma_use(), and ws_variable_define().