Data Structures | |
struct | _text_seg_t |
Typedefs | |
typedef struct _text_seg_t * | text_seg_t |
A text segment (holds static strings). | |
Functions | |
void | text_seg_init (text_seg_t seg) |
void | text_seg_deinit (text_seg_t seg) |
void | text_seg_free (text_seg_t seg) |
const char * | text_seg_find_by_text (text_seg_t, const char *) |
const char * | text_seg_find_by_index (text_seg_t, word_t) |
word_t | text_seg_text_to_index (text_seg_t, const char *) |
void | text_seg_serialize (text_seg_t, writer_t, const char *sec_name) |
void | text_seg_unserialize (text_seg_t, reader_t, const char *sec_name) |
word_t | env_sym_to_index (vm_dyn_env_t env, const char *key) |
const char * | env_index_to_sym (vm_dyn_env_t env, word_t index) |
vm_data_t | env_get (vm_dyn_env_t env, word_t index) |
void | env_set (vm_t vm, vm_dyn_env_t env, word_t index, vm_data_t data) |
typedef struct _text_seg_t* text_seg_t |
A text segment (holds static strings).
void text_seg_init | ( | text_seg_t | seg | ) |
void text_seg_deinit | ( | text_seg_t | seg | ) |
void text_seg_free | ( | text_seg_t | seg | ) |
const char* text_seg_find_by_text | ( | text_seg_t | , | |
const char * | ||||
) |
const char* text_seg_find_by_index | ( | text_seg_t | , | |
word_t | ||||
) |
word_t text_seg_text_to_index | ( | text_seg_t | , | |
const char * | ||||
) |
void text_seg_serialize | ( | text_seg_t | , | |
writer_t | , | |||
const char * | sec_name | |||
) |
void text_seg_unserialize | ( | text_seg_t | , | |
reader_t | , | |||
const char * | sec_name | |||
) |
word_t env_sym_to_index | ( | vm_dyn_env_t | env, | |
const char * | key | |||
) |
const char* env_index_to_sym | ( | vm_dyn_env_t | env, | |
word_t | index | |||
) |
vm_data_t env_get | ( | vm_dyn_env_t | env, | |
word_t | index | |||
) |
void env_set | ( | vm_t | vm, | |
vm_dyn_env_t | env, | |||
word_t | index, | |||
vm_data_t | data | |||
) |