mruby/c Symbol class More...
Go to the source code of this file.
Data Structures | |
| struct | SYM_INDEX |
Macros | |
| #define | MRBC_DEFINE_SYMBOL_TABLE |
| #define | MRBC_SYMBOL_SEARCH_BTREE |
| #define | MRBC_SYMBOL_TABLE_INDEX_TYPE uint8_t |
| #define | OFFSET_BUILTIN_SYMBOL 256 |
Functions | |
| static uint16_t | calc_hash (const char *str) |
| static int | search_builtin_symbol (const char *str) |
| static int | search_index (uint16_t hash, const char *str) |
| static int | add_index (uint16_t hash, const char *str) |
| void | mrbc_cleanup_symbol (void) |
| mrbc_sym | mrbc_str_to_symid (const char *str) |
| const char * | mrbc_symid_to_str (mrbc_sym sym_id) |
| mrbc_sym | mrbc_search_symid (const char *str) |
| void | make_nested_symbol_s (char *buf, mrbc_sym id1, mrbc_sym id2) |
| void | mrbc_separate_nested_symid (mrbc_sym sym_id, mrbc_sym *id1, mrbc_sym *id2) |
| mrbc_value | mrbc_symbol_new (struct VM *vm, const char *str) |
Variables | |
| static struct SYM_INDEX | sym_index [MAX_SYMBOLS_COUNT] |
| static int | sym_index_pos |
mruby/c Symbol class
Copyright (C) 2015- Kyushu Institute of Technology. Copyright (C) 2015- Shimane IT Open-Innovation Center. This file is distributed under BSD 3-Clause License.
Definition in file symbol.c.
|
static |
|
inlinestatic |
| void mrbc_cleanup_symbol | ( | void | ) |
| mrbc_sym mrbc_search_symid | ( | const char * | str | ) |
separate nested symbol ID
| sym_id | symbol ID | |
| [out] | id1 | result 1 |
| [out] | id2 | result 2 |
Definition at line 305 of file symbol.c.
| mrbc_sym mrbc_str_to_symid | ( | const char * | str | ) |
| mrbc_value mrbc_symbol_new | ( | struct VM * | vm, |
| const char * | str ) |
| const char * mrbc_symid_to_str | ( | mrbc_sym | sym_id | ) |
|
static |
|
static |
|
static |