libmya 0.1.0
Library to parse Mya language.
|
Go to the source code of this file.
Functions | |
void | hashtable_init (hashtable_t *hashtable, unsigned int size) |
Initializes a hashtable. | |
void | hashtable_close (hashtable_t *hashtable) |
Close the given hashtable. | |
void | hashtable_set (hashtable_t *hashtable, const char *key, int64_t value) |
Set the value of the specified key inside the hashtable. | |
error_code_t | hashtable_get (hashtable_t *hashtable, const char *key, int64_t *value) |
Get the value of the specified key inside the hashtable. | |
void hashtable_close | ( | hashtable_t * | hashtable | ) |
Close the given hashtable.
hashtable | The hashtable to be closed. |
Definition at line 26 of file hashtable.c.
error_code_t hashtable_get | ( | hashtable_t * | hashtable, |
const char * | key, | ||
int64_t * | value ) |
Get the value of the specified key inside the hashtable.
hashtable | The hashtable where to get the value. |
key | The key of the value. |
value | Pointer to where the value will be saved. |
Definition at line 73 of file hashtable.c.
void hashtable_init | ( | hashtable_t * | hashtable, |
unsigned int | size ) |
Initializes a hashtable.
hashtable | The hashtable to be initialized. |
size | The number of item slots of the items allocated memory. Bigger means: + memory, - collision. |
Definition at line 18 of file hashtable.c.
void hashtable_set | ( | hashtable_t * | hashtable, |
const char * | key, | ||
int64_t | value ) |
Set the value of the specified key inside the hashtable.
hashtable | The hashtable where the key is. |
key | The key. |
value | The value to set for the key. |
Definition at line 51 of file hashtable.c.