Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Variables | |
static RzLangPlugin * | lang_static_plugins [] = { RZ_LANG_STATIC_PLUGINS } |
static RzLang * | __lang = NULL |
RZ_API bool rz_lang_add | ( | RzLang * | lang, |
RzLangPlugin * | foo | ||
) |
Definition at line 115 of file lang.c.
References foo, rz_lang_t::langs, rz_main_t::name, rz_lang_get_by_name(), and rz_list_append().
Referenced by rz_lang_new().
Definition at line 65 of file lang.c.
References def(), rz_lang_t::defs, rz_list_append(), RZ_NEW0, rz_str_casecmp(), strdup(), type, and value.
Referenced by rz_core_init().
Definition at line 46 of file lang.c.
References __lang, rz_lang_t::defs, free(), rz_lang_t::langs, NULL, rz_lang_undef(), and rz_list_free().
Referenced by rz_core_fini(), and rz_lang_new().
RZ_API RzLangPlugin* rz_lang_get_by_extension | ( | RzLang * | lang, |
const char * | ext | ||
) |
Definition at line 126 of file lang.c.
References ext, h, rz_lang_t::langs, NULL, p, rz_str_casecmp(), and rz_str_lchr().
Referenced by rz_core_run_script().
RZ_API RzLangPlugin* rz_lang_get_by_name | ( | RzLang * | lang, |
const char * | name | ||
) |
Definition at line 141 of file lang.c.
References h, rz_lang_t::langs, NULL, and rz_str_casecmp().
Referenced by rz_hash_bang_handler(), rz_lang_add(), and rz_lang_use().
Definition at line 20 of file lang.c.
References rz_lang_t::cb_printf, rz_lang_t::defs, rz_list_t::free, i, lang_static_plugins, rz_lang_t::langs, NULL, printf(), RZ_ARRAY_SIZE, rz_lang_add(), rz_lang_def_free(), rz_lang_free(), rz_lang_plugin_free(), rz_list_new(), RZ_NEW0, and rz_lang_t::user.
Referenced by rz_core_init().
RZ_API void rz_lang_plugin_free | ( | RzLangPlugin * | p | ) |
Definition at line 205 of file lang.c.
References rz_lang_t::cur, def(), rz_lang_t::defs, eprintf, free(), rz_lang_plugin_t::help, setup::line, rz_lang_plugin_t::name, p, printf(), prompt(), rz_lang_plugin_t::prompt, rz_cons_flush(), rz_file_abspath(), rz_lang_run(), rz_lang_run_file(), rz_line_hist_add(), rz_line_readline(), rz_line_set_prompt(), rz_line_singleton(), rz_sys_xsystem, snprintf, and strdup().
Referenced by rz_hash_bang_handler().
Definition at line 172 of file lang.c.
References rz_lang_t::cur, len, and rz_lang_plugin_t::run.
Referenced by rz_lang_prompt(), and rz_lang_run_string().
Definition at line 183 of file lang.c.
References rz_lang_t::cur, eprintf, free(), len, rz_lang_plugin_t::run, rz_lang_plugin_t::run_file, and rz_file_slurp().
Referenced by lang_run_file(), rz_hash_bang_handler(), and rz_lang_prompt().
Definition at line 179 of file lang.c.
References rz_lang_run().
Definition at line 165 of file lang.c.
References argv, rz_lang_t::cur, and rz_lang_plugin_t::set_argv.
Referenced by rz_hash_bang_handler().
Definition at line 91 of file lang.c.
References def(), rz_lang_t::defs, NULL, rz_list_delete(), rz_list_free(), and rz_str_casecmp().
Referenced by rz_lang_free().
Definition at line 155 of file lang.c.
References rz_lang_t::cur, h, and rz_lang_get_by_name().
Referenced by rz_core_run_script().
RZ_LIB_VERSION | ( | rz_lang | ) |
Definition at line 12 of file lang.c.
Referenced by rz_lang_free(), and rz_lang_plugin_free().
|
static |
Definition at line 11 of file lang.c.
Referenced by rz_lang_new().