diff options
author | Steve Chamberlain <sac@cygnus> | 1991-11-12 04:52:27 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1991-11-12 04:52:27 +0000 |
commit | c21b1b266083751c0860cca335362910e1b08c41 (patch) | |
tree | 6363deefdb69997f71cc7cba97c5638e6ee23695 /readline/readline.c | |
parent | 3509822c486f47896444736d07aa8d0eb19b5578 (diff) | |
download | gdb-c21b1b266083751c0860cca335362910e1b08c41.zip gdb-c21b1b266083751c0860cca335362910e1b08c41.tar.gz gdb-c21b1b266083751c0860cca335362910e1b08c41.tar.bz2 |
Mon Nov 11 20:50:29 1991 Steve Chamberlain (sac at cygnus.com)
* Makefile.in: Use the MINUS_G no-debug convention
* readline.c: (many_places) move all the declarations of rindex to
only one place, to reduce the number of warnings it makes.
Diffstat (limited to 'readline/readline.c')
-rw-r--r-- | readline/readline.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/readline/readline.c b/readline/readline.c index 5238bcf..a8363c5 100644 --- a/readline/readline.c +++ b/readline/readline.c @@ -2204,12 +2204,12 @@ rl_deprep_terminal () int allow_pathname_alphabetic_chars = 0; char *pathname_alphabetic_chars = "/-_=~.#$"; - +char *rindex (); int alphabetic (c) int c; { - char *rindex (); + if (pure_alphabetic (c) || (numeric (c))) return (1); @@ -3322,7 +3322,7 @@ rl_complete_internal (what_to_do) /* Handle simple case first. What if there is only one answer? */ if (!matches[1]) { - char *rindex (), *temp; + char *temp; if (rl_filename_completion_desired) temp = rindex (matches[0], '/'); @@ -3345,7 +3345,7 @@ rl_complete_internal (what_to_do) is. */ for (i = 1; matches[i]; i++) { - char *rindex (), *temp = (char *)NULL; + char *temp = (char *)NULL; /* If we are hacking filenames, then only count the characters after the last slash in the pathname. */ @@ -3412,7 +3412,7 @@ rl_complete_internal (what_to_do) } else { - char *rindex (), *temp = (char *)NULL; + char *temp = (char *)NULL; if (rl_filename_completion_desired) temp = rindex (matches[l], '/'); @@ -4639,7 +4639,7 @@ filename_completion_function (text, state) /* If we don't have any state, then do some initialization. */ if (!state) { - char *rindex (), *temp; + char *temp; if (dirname) free (dirname); if (filename) free (filename); @@ -5195,7 +5195,7 @@ rl_parse_and_bind (string) char *string; { extern char *possible_control_prefixes[], *possible_meta_prefixes[]; - char *rindex (), *funname, *kname; + char *funname, *kname; static int substring_member_of_array (); register int c; int key, i; |