commit bash-20060316 snapshot

This commit is contained in:
Chet Ramey
2011-12-07 09:05:27 -05:00
parent 97be3d8ed9
commit 28157acd2d
1546 changed files with 713954 additions and 55608 deletions
+19 -21
View File
@@ -80,7 +80,7 @@ static int glean_key_from_name PARAMS((char *));
static int find_boolean_var PARAMS((const char *));
static char *_rl_get_string_variable_value PARAMS((const char *));
static int substring_member_of_array PARAMS((const char *, const char * const *));
static int substring_member_of_array PARAMS((char *, const char **));
static int currently_reading_init_file;
@@ -370,10 +370,7 @@ rl_generic_bind (type, keyseq, data, map)
ic = uc;
if (ic < 0 || ic >= KEYMAP_SIZE)
{
free (keys);
return -1;
}
return -1;
if (META_CHAR (ic) && _rl_convert_meta_chars_to_ascii)
{
@@ -921,10 +918,10 @@ _rl_init_file_error (msg)
const char *msg;
{
if (currently_reading_init_file)
_rl_errmsg ("%s: line %d: %s\n", current_readline_init_file,
fprintf (stderr, "readline: %s: line %d: %s\n", current_readline_init_file,
current_readline_init_lineno, msg);
else
_rl_errmsg ("%s", msg);
fprintf (stderr, "readline: %s\n", msg);
}
/* **************************************************************** */
@@ -936,11 +933,11 @@ _rl_init_file_error (msg)
typedef int _rl_parser_func_t PARAMS((char *));
/* Things that mean `Control'. */
const char * const _rl_possible_control_prefixes[] = {
const char *_rl_possible_control_prefixes[] = {
"Control-", "C-", "CTRL-", (const char *)NULL
};
const char * const _rl_possible_meta_prefixes[] = {
const char *_rl_possible_meta_prefixes[] = {
"Meta", "M-", (const char *)NULL
};
@@ -1099,8 +1096,8 @@ parser_include (args)
}
/* Associate textual names with actual functions. */
static const struct {
const char * const name;
static struct {
const char *name;
_rl_parser_func_t *function;
} parser_directives [] = {
{ "if", parser_if },
@@ -1406,8 +1403,8 @@ rl_parse_and_bind (string)
#define V_SPECIAL 0x1
static const struct {
const char * const name;
static struct {
const char *name;
int *value;
int flags;
} boolean_varlist [] = {
@@ -1494,8 +1491,8 @@ static int sv_editmode PARAMS((const char *));
static int sv_isrchterm PARAMS((const char *));
static int sv_keymap PARAMS((const char *));
static const struct {
const char * const name;
static struct {
const char *name;
int flags;
_rl_sv_func_t *set_func;
} string_varlist[] = {
@@ -1537,6 +1534,7 @@ rl_variable_value (name)
const char *name;
{
register int i;
int v;
/* Check for simple variables first. */
i = find_boolean_var (name);
@@ -1701,11 +1699,11 @@ sv_isrchterm (value)
For example, `Space' returns ' '. */
typedef struct {
const char * const name;
const char *name;
int value;
} assoc_list;
static const assoc_list name_key_alist[] = {
static assoc_list name_key_alist[] = {
{ "DEL", 0x7f },
{ "ESC", '\033' },
{ "Escape", '\033' },
@@ -1734,8 +1732,8 @@ glean_key_from_name (name)
}
/* Auxiliary functions to manage keymaps. */
static const struct {
const char * const name;
static struct {
const char *name;
Keymap map;
} keymap_names[] = {
{ "emacs", emacs_standard_keymap },
@@ -2298,8 +2296,8 @@ rl_dump_variables (count, key)
/* Return non-zero if any members of ARRAY are a substring in STRING. */
static int
substring_member_of_array (string, array)
const char *string;
const char * const *array;
char *string;
const char **array;
{
while (*array)
{