Bash
5.0-beta2
Bash - Bourne Again shell
|
#include "ansi_stdlib.h"
#include <stdio.h>
#include "rldefs.h"
#include "rlmbutil.h"
#include "readline.h"
#include "history.h"
#include "rlprivate.h"
#include "rlshell.h"
#include "xmalloc.h"
Go to the source code of this file.
Macros | |
#define | READLINE_LIBRARY |
Variables | |
int | _rl_history_preserve_point = 0 |
_rl_arg_cxt | _rl_argcxt |
int | _rl_history_saved_point = -1 |
HIST_ENTRY * | _rl_saved_line_for_history = (HIST_ENTRY *)NULL |
|
static |
Definition at line 194 of file misc.c.
References _rl_abort_internal(), _rl_arg_dispatch(), _rl_arg_getchar(), _rl_arg_overflow(), c, RL_ISSTATE, and RL_STATE_NUMERICARG.
Referenced by rl_digit_argument(), and rl_universal_argument().
|
static |
Definition at line 396 of file misc.c.
References _rl_keymap, emacs_mode, rl_editing_mode, rl_end, rl_mark, rl_point, vi_insertion_keymap, and vi_mode.
Referenced by rl_get_next_history(), and rl_get_previous_history().
void _rl_free_history_entry | ( | ) |
Referenced by _rl_free_saved_history_line(), _rl_start_using_history(), rl_clear_history(), and rl_maybe_unsave_line().
int _rl_arg_overflow | ( | void | ) |
Definition at line 79 of file misc.c.
References rl_clear_message(), rl_ding(), rl_explicit_arg, rl_numeric_arg, rl_restore_prompt(), RL_STATE_NUMERICARG, and RL_UNSETSTATE.
Referenced by rl_digit_loop(), and rl_digit_loop1().
void _rl_arg_init | ( | void | ) |
Definition at line 95 of file misc.c.
References rl_save_prompt(), RL_SETSTATE, and RL_STATE_NUMERICARG.
Referenced by rl_digit_argument(), and rl_universal_argument().
int _rl_arg_getchar | ( | void | ) |
Definition at line 103 of file misc.c.
References c, rl_arg_sign, rl_message(), rl_numeric_arg, rl_read_key(), RL_SETSTATE, RL_STATE_MOREINPUT, and RL_UNSETSTATE.
Referenced by _rl_arg_callback(), rl_digit_loop(), and rl_digit_loop1().
int _rl_arg_dispatch | ( | _rl_arg_cxt | cxt, |
int | c | ||
) |
Definition at line 119 of file misc.c.
References _rl_digit_p, _rl_digit_value, _rl_dispatch(), _rl_keymap, c, ISFUNC, NUM_READONE, NUM_SAWDIGITS, NUM_SAWMINUS, rl_arg_sign, rl_clear_message(), rl_done, rl_explicit_arg, RL_ISSTATE, rl_numeric_arg, rl_read_key(), rl_restore_prompt(), RL_SETSTATE, RL_STATE_CALLBACK, RL_STATE_MOREINPUT, RL_STATE_NUMERICARG, rl_universal_argument(), RL_UNSETSTATE, and UNMETA.
Referenced by _rl_arg_callback(), rl_digit_argument(), and rl_digit_loop().
void _rl_reset_argument | ( | void | ) |
Definition at line 221 of file misc.c.
References rl_arg_sign, rl_explicit_arg, and rl_numeric_arg.
Referenced by _rl_abort_internal(), readline_internal_char(), rl_discard_argument(), rl_free_line_state(), and rl_insert().
int rl_digit_argument | ( | int | ignore, |
int | key | ||
) |
Definition at line 230 of file misc.c.
References _rl_arg_dispatch(), _rl_arg_init(), rl_arg_sign, rl_digit_loop(), rl_execute_next(), RL_ISSTATE, rl_message(), rl_numeric_arg, and RL_STATE_CALLBACK.
Referenced by _rl_dispatch_subseq(), and rl_vi_arg_digit().
int rl_universal_argument | ( | int | count, |
int | key | ||
) |
Definition at line 250 of file misc.c.
References _rl_arg_init(), rl_digit_loop(), RL_ISSTATE, rl_numeric_arg, and RL_STATE_CALLBACK.
Referenced by _rl_arg_dispatch(), and _rl_vi_arg_dispatch().
int _rl_arg_callback | ( | _rl_arg_cxt | cxt | ) |
Definition at line 259 of file misc.c.
References _rl_arg_dispatch(), _rl_arg_getchar(), c, NUM_READONE, rl_arg_sign, rl_clear_message(), rl_execute_next(), rl_message(), rl_numeric_arg, rl_restore_prompt(), RL_STATE_NUMERICARG, and RL_UNSETSTATE.
Referenced by rl_callback_read_char().
int rl_discard_argument | ( | void | ) |
Definition at line 285 of file misc.c.
References _rl_reset_argument(), rl_clear_message(), and rl_ding().
void _rl_start_using_history | ( | void | ) |
Definition at line 310 of file misc.c.
References _rl_free_history_entry(), NULL, and using_history().
Referenced by rl_initialize().
void _rl_free_history_entry | ( | HIST_ENTRY * | entry | ) |
Definition at line 321 of file misc.c.
References FREE, _hist_entry::line, _hist_entry::timestamp, and xfree().
int rl_maybe_replace_line | ( | void | ) |
Definition at line 334 of file misc.c.
References current_history(), _hist_entry::data, FREE, _hist_entry::line, replace_history_entry(), rl_line_buffer, rl_undo_list, temp, _hist_entry::timestamp, where_history(), and xfree().
Referenced by _rl_isearch_init(), maybe_replace_line(), rl_end_of_history(), rl_get_next_history(), and rl_get_previous_history().
int rl_maybe_unsave_line | ( | void | ) |
Definition at line 352 of file misc.c.
References _rl_free_history_entry(), _hist_entry::data, _hist_entry::line, NULL, rl_ding(), rl_end, rl_point, rl_replace_line(), and rl_undo_list.
Referenced by _rl_nsearch_abort(), maybe_unsave_line(), noninc_dosearch(), rl_end_of_history(), rl_get_next_history(), rl_get_previous_history(), and rl_history_search_internal().
int rl_maybe_save_line | ( | void | ) |
Definition at line 371 of file misc.c.
References _hist_entry::data, _hist_entry::line, NULL, rl_line_buffer, rl_undo_list, savestring(), _hist_entry::timestamp, and xmalloc().
Referenced by _rl_nsearch_init(), maybe_save_line(), rl_get_previous_history(), and rl_history_search_internal().
int _rl_free_saved_history_line | ( | void | ) |
Definition at line 385 of file misc.c.
References _rl_free_history_entry(), and NULL.
Referenced by rl_history_search_reinit(), and rl_vi_search().
void rl_replace_from_history | ( | HIST_ENTRY * | entry, |
int | flags | ||
) |
Definition at line 414 of file misc.c.
References _hist_entry::data, _hist_entry::line, rl_editing_mode, rl_end, rl_mark, rl_point, rl_replace_line(), rl_undo_list, VI_MODE, and vi_mode.
Referenced by _rl_revert_all_lines(), rl_get_next_history(), and rl_get_previous_history().
void _rl_revert_all_lines | ( | void | ) |
Definition at line 438 of file misc.c.
References _rl_set_the_line(), current_history(), _hist_entry::data, FREE, history_length, history_set_pos(), lbuf, _hist_entry::line, previous_history(), rl_do_undo(), rl_line_buffer, rl_replace_from_history(), rl_replace_line(), rl_undo_list, savestring(), where_history(), and xfree().
Referenced by readline_internal_teardown().
void rl_clear_history | ( | void | ) |
Definition at line 487 of file misc.c.
References _rl_free_history_entry(), _rl_free_undo_list(), _hist_entry::data, history_length, history_list(), history_offset, i, and rl_undo_list.
int rl_beginning_of_history | ( | int | count, |
int | key | ||
) |
Definition at line 521 of file misc.c.
References rl_get_previous_history(), and where_history().
Referenced by rl_vi_fetch_history().
int rl_end_of_history | ( | int | count, |
int | key | ||
) |
Definition at line 528 of file misc.c.
References rl_maybe_replace_line(), rl_maybe_unsave_line(), and using_history().
int rl_get_next_history | ( | int | count, |
int | key | ||
) |
Definition at line 538 of file misc.c.
References _rl_history_set_point(), next_history(), NULL, rl_end, rl_get_previous_history(), rl_maybe_replace_line(), rl_maybe_unsave_line(), rl_point, rl_replace_from_history(), and temp.
Referenced by _rl_isearch_fini(), bind_arrow_keys_internal(), bind_termcap_arrow_keys(), rl_arrow_keys(), rl_get_previous_history(), rl_history_search_forward(), and rl_history_substr_search_forward().
int rl_get_previous_history | ( | int | count, |
int | key | ||
) |
Definition at line 576 of file misc.c.
References _rl_history_set_point(), history_list(), NULL, previous_history(), rl_ding(), rl_end, rl_get_next_history(), rl_maybe_replace_line(), rl_maybe_save_line(), rl_maybe_unsave_line(), rl_point, rl_replace_from_history(), and temp.
Referenced by _rl_isearch_fini(), bind_arrow_keys_internal(), bind_termcap_arrow_keys(), rl_arrow_keys(), rl_beginning_of_history(), rl_get_next_history(), rl_history_search_backward(), rl_history_substr_search_backward(), and rl_vi_fetch_history().
int rl_vi_editing_mode | ( | int | count, |
int | key | ||
) |
Definition at line 633 of file misc.c.
References _rl_set_insert_mode(), rl_editing_mode, RL_IM_INSERT, rl_vi_insert_mode(), and vi_mode.
int rl_emacs_editing_mode | ( | int | count, |
int | key | ||
) |
Definition at line 645 of file misc.c.
References _rl_keymap, _rl_reset_prompt(), _rl_set_insert_mode(), _rl_show_mode_in_prompt, emacs_mode, emacs_standard_keymap, rl_editing_mode, and RL_IM_INSERT.
void _rl_set_insert_mode | ( | int | im, |
int | force | ||
) |
Definition at line 659 of file misc.c.
References _rl_set_cursor(), and rl_insert_mode.
Referenced by readline_internal_teardown(), rl_emacs_editing_mode(), rl_initialize(), rl_overwrite_mode(), and rl_vi_editing_mode().
int rl_overwrite_mode | ( | int | count, |
int | key | ||
) |
Definition at line 671 of file misc.c.
References _rl_set_insert_mode(), rl_explicit_arg, RL_IM_INSERT, RL_IM_OVERWRITE, and rl_insert_mode.
Referenced by bind_arrow_keys_internal(), and bind_termcap_arrow_keys().
int _rl_history_preserve_point = 0 |
Definition at line 64 of file misc.c.
Referenced by rl_newline().
_rl_arg_cxt _rl_argcxt |
Definition at line 66 of file misc.c.
Referenced by rl_callback_read_char(), and rl_callback_sigcleanup().
int _rl_history_saved_point = -1 |
Definition at line 70 of file misc.c.
Referenced by rl_newline().
HIST_ENTRY* _rl_saved_line_for_history = (HIST_ENTRY *)NULL |