diff options
author | ache <ache@FreeBSD.org> | 2003-08-31 17:55:46 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2003-08-31 17:55:46 +0000 |
commit | ab304301db89e3906744fb6a81655b9598764582 (patch) | |
tree | f75abef44b0f70973592b7edb66a319f92a1d7b2 /contrib/libreadline/histsearch.c | |
parent | e5103242d94d5211fa44bad651caaa7a61519867 (diff) | |
download | FreeBSD-src-ab304301db89e3906744fb6a81655b9598764582.zip FreeBSD-src-ab304301db89e3906744fb6a81655b9598764582.tar.gz |
Virgin import of GNU Readline 4.3
Diffstat (limited to 'contrib/libreadline/histsearch.c')
-rw-r--r-- | contrib/libreadline/histsearch.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/contrib/libreadline/histsearch.c b/contrib/libreadline/histsearch.c index ff4f3a1..d94fd6c 100644 --- a/contrib/libreadline/histsearch.c +++ b/contrib/libreadline/histsearch.c @@ -32,17 +32,13 @@ #else # include "ansi_stdlib.h" #endif /* HAVE_STDLIB_H */ + #if defined (HAVE_UNISTD_H) # ifdef _MINIX # include <sys/types.h> # endif # include <unistd.h> #endif -#if defined (HAVE_STRING_H) -# include <string.h> -#else -# include <strings.h> -#endif /* !HAVE_STRING_H */ #include "history.h" #include "histlib.h" @@ -51,6 +47,8 @@ string. */ char *history_search_delimiter_chars = (char *)NULL; +static int history_search_internal PARAMS((const char *, int, int)); + /* Search the history for STRING, starting at history_offset. If DIRECTION < 0, then the search is through previous entries, else through subsequent. If ANCHORED is non-zero, the string must |