diff --git a/src/frontend/com_history.c b/src/frontend/com_history.c index f994d22d6..d49af1d26 100644 --- a/src/frontend/com_history.c +++ b/src/frontend/com_history.c @@ -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. */ diff --git a/src/include/ngspice/cpextern.h b/src/include/ngspice/cpextern.h index eee84cc53..09bd378c2 100644 --- a/src/include/ngspice/cpextern.h +++ b/src/include/ngspice/cpextern.h @@ -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 */