deleted all references to rindex and included string.h instead.

This commit is contained in:
ats 1993-12-01 16:45:42 +00:00
parent 14c7aad054
commit 949c374bfb

View File

@ -47,6 +47,7 @@ static char *xmalloc (), *xrealloc ();
#include <fcntl.h>
#include <sys/file.h>
#include <signal.h>
#include <string.h>
#ifdef __GNUC__
#define alloca __builtin_alloca
@ -2144,7 +2145,6 @@ int
alphabetic (c)
int c;
{
char *rindex ();
if (pure_alphabetic (c) || (numeric (c)))
return (1);
@ -3263,7 +3263,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], '/');
@ -3286,7 +3286,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. */
@ -3355,7 +3355,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], '/');
@ -4574,7 +4574,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);
@ -5164,7 +5164,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 (), stricmp ();
register int c;
int key, i;