Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | I rz_line_instance |
Variables | |
static RzLine | rz_line_instance |
#define I rz_line_instance |
Definition at line 50 of file line.c.
References I, rz_list_insert(), cmd_descs_generate::str, and strdup().
Referenced by backward_kill_word(), kill_word(), rz_line_readline_cb(), and unix_word_rubout().
RZ_API void rz_line_completion_clear | ( | RzLineCompletion * | completion | ) |
Definition at line 109 of file line.c.
References rz_line_comp_t::args, rz_line_comp_t::quit, rz_pvector_clear(), and rz_return_if_fail.
Referenced by find_autocomplete(), rz_core_autocomplete(), rz_line_completion_fini(), and rz_line_completion_set().
RZ_API void rz_line_completion_fini | ( | RzLineCompletion * | completion | ) |
Definition at line 75 of file line.c.
References rz_line_completion_clear().
Referenced by rz_line_free().
RZ_API void rz_line_completion_init | ( | RzLineCompletion * | completion, |
size_t | args_limit | ||
) |
Definition at line 68 of file line.c.
References rz_line_comp_t::args, rz_line_comp_t::args_limit, free(), NULL, rz_line_comp_t::run, rz_line_comp_t::run_user, and rz_pvector_init().
Referenced by rz_line_new().
RZ_API void rz_line_completion_push | ( | RzLineCompletion * | completion, |
const char * | str | ||
) |
Definition at line 79 of file line.c.
References rz_line_comp_t::args, rz_line_comp_t::args_limit, eprintf, rz_line_comp_t::quit, rz_pvector_len(), rz_pvector_push(), rz_return_if_fail, s, cmd_descs_generate::str, and strdup().
Referenced by add_argv(), autocomplete_breakpoints(), autocomplete_default(), autocomplete_evals(), autocomplete_flagspaces(), autocomplete_functions(), autocomplete_macro(), autocomplete_minus(), autocomplete_process_path(), autocomplete_sdb(), autocomplete_theme(), find_autocomplete(), find_e_opts(), rz_core_autocomplete(), and rz_line_completion_set().
RZ_API void rz_line_completion_set | ( | RzLineCompletion * | completion, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 95 of file line.c.
References rz_line_comp_t::args, rz_line_comp_t::args_limit, argv, count, eprintf, i, rz_line_completion_clear(), rz_line_completion_push(), RZ_MIN, rz_pvector_reserve(), and rz_return_if_fail.
Referenced by rz_core_fgets().
RZ_API void rz_line_free | ( | void | ) |
Definition at line 41 of file line.c.
References free(), I, NULL, rz_line_completion_fini(), rz_line_hist_free(), and rz_list_free().
Referenced by rz_cons_free().
Definition at line 19 of file line.c.
References eprintf, free(), I, NULL, rz_line_completion_init(), rz_line_dietline_init(), rz_line_nscompletion_init(), rz_list_newf(), RZ_VIRT_TERM_MODE_COMPLETE, and strdup().
Referenced by rz_cons_new().
RZ_API void rz_line_ns_completion_result_add | ( | RzLineNSCompletionResult * | res, |
const char * | option | ||
) |
Add a new option to the list of possible autocomplete-able values.
Definition at line 156 of file line.c.
References dup, NULL, rz_line_ns_completion_result_t::options, rz_line_ns_completion_result_t::options_ht, rz_pvector_push(), and strdup().
Referenced by autocmplt_arch(), autocmplt_at_stmt(), autocmplt_bits_plugin(), autocmplt_cmd_arg_alias_type(), autocmplt_cmd_arg_any_type(), autocmplt_cmd_arg_choices(), autocmplt_cmd_arg_enum_type(), autocmplt_cmd_arg_env(), autocmplt_cmd_arg_eval_full(), autocmplt_cmd_arg_eval_key(), autocmplt_cmd_arg_fcn(), autocmplt_cmd_arg_fcn_var(), autocmplt_cmd_arg_file(), autocmplt_cmd_arg_flag(), autocmplt_cmd_arg_global_var(), autocmplt_cmd_arg_help_var(), autocmplt_cmd_arg_macro(), autocmplt_cmd_arg_struct_type(), autocmplt_cmd_arg_union_type(), autocmplt_flag_space(), autocmplt_reg(), do_autocmplt_cmdidentifier(), offset_prompt_add_flag(), and rz_line_ns_completion_result_propose().
RZ_API void rz_line_ns_completion_result_free | ( | RzLineNSCompletionResult * | res | ) |
Free a previously allocated RzLineNSCompletionResult
Definition at line 144 of file line.c.
References free(), rz_line_ns_completion_result_t::options, rz_line_ns_completion_result_t::options_ht, and rz_pvector_fini().
Referenced by rz_line_autocomplete().
RZ_API RzLineNSCompletionResult* rz_line_ns_completion_result_new | ( | size_t | start, |
size_t | end, | ||
const char * | end_string | ||
) |
Create an empty completion result with no available options.
start | Value for RzLineNSCompletionResult.start |
end | Value for RzLineNSCompletionResult.end |
end_string | Text that should be inserted after the only option available is autocompleted. When NULL, it defaults to " " (without quotes) |
Definition at line 122 of file line.c.
References rz_line_ns_completion_result_t::end, test_evm::end, rz_line_ns_completion_result_t::end_string, free(), NULL, rz_line_ns_completion_result_t::options, rz_line_ns_completion_result_t::options_ht, RZ_NEW0, rz_pvector_init(), sdb_hash(), rz_line_ns_completion_result_t::start, and start.
Referenced by fill_autocmplt_data(), and fill_autocmplt_data_cmdarg().
RZ_API void rz_line_ns_completion_result_propose | ( | RzLineNSCompletionResult * | res, |
const char * | option, | ||
const char * | cur, | ||
size_t | cur_len | ||
) |
Add a new option to the list of possible autocomplete-able value if it matches the given string.
option | the option to be added |
cur | currently entered prefix |
Definition at line 170 of file line.c.
References rz_line_ns_completion_result_add().
Referenced by autocmplt_cmd_arg_reg_filter(), and autocmplt_cmd_arg_reg_type().
|
static |
Definition at line 56 of file line.c.
References rz_cons_t::cb_fkey, free(), I, prompt(), rz_cons_singleton(), and strdup().
Referenced by __handleComment(), __input_cb(), __panel_prompt(), __prompt(), __rtr_shell(), add_comment(), config_visual_hit(), handleHints(), prompt(), prompt_read(), rtr_visual(), rz_cmd_help(), rz_cmd_kuery(), rz_cons_input(), rz_cons_less_str(), rz_core_visual_analysis(), rz_core_visual_analysis_classes(), rz_core_visual_bit_editor(), rz_core_visual_classes(), rz_core_visual_cmd(), rz_core_visual_colors(), rz_core_visual_config_hud(), rz_core_visual_define(), rz_core_visual_esil(), rz_core_visual_graph(), rz_core_visual_offset(), rz_core_visual_prompt(), rz_core_visual_trackflags(), rz_core_visual_view_graph(), rz_core_visual_view_rop(), rz_lang_prompt(), set_prompt(), visual_offset(), visual_prompt(), and visual_search().
Definition at line 15 of file line.c.
References rz_line_instance.
Referenced by cb_scrprompt(), and rz_lang_prompt().
|
static |
Definition at line 7 of file line.c.
Referenced by rz_line_singleton().