com_history.c, static declaration for 'cp_hprint()'

This commit is contained in:
rlar 2016-08-13 13:16:39 +02:00
parent 0a9917e142
commit c4cd2270ed
2 changed files with 4 additions and 4 deletions

View File

@ -28,6 +28,7 @@ static wordlist *hpattern(char *buf);
static wordlist *hprefix(char *buf);
static wordlist *getevent(int num);
#if !defined(HAVE_GNUREADLINE) && !defined(HAVE_BSDEDITLINE)
static void cp_hprint(int eventhi, int eventlo, bool rev);
static void freehist(int num);
#endif
static char *dohs(char *pat, char *str);
@ -405,11 +406,13 @@ getevent(int num)
}
#if !defined(HAVE_GNUREADLINE) && !defined(HAVE_BSDEDITLINE)
/* Print out history between eventhi and eventlo.
* This doesn't remember quoting, so 'hodedo' prints as hodedo.
*/
void
static void
cp_hprint(int eventhi, int eventlo, bool rev)
{
struct histent *hi;
@ -440,8 +443,6 @@ cp_hprint(int eventhi, int eventlo, bool rev)
}
#if !defined(HAVE_GNUREADLINE) && !defined(HAVE_BSDEDITLINE)
/* This just gets rid of the first num entries on the history list, and
* decrements histlength.
*/

View File

@ -98,7 +98,6 @@ extern char cp_hat;
extern int cp_maxhistlength;
extern struct histent *cp_lastone;
extern void cp_addhistent(int event, wordlist *wlist);
void cp_hprint(int eventhi, int eventlo, bool rev);
extern wordlist *cp_histsubst(wordlist *wlist);
/* lexical.c */