Browse Source

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

pre-master-46
rlar 10 years ago
parent
commit
c4cd2270ed
  1. 7
      src/frontend/com_history.c
  2. 1
      src/include/ngspice/cpextern.h

7
src/frontend/com_history.c

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

1
src/include/ngspice/cpextern.h

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

Loading…
Cancel
Save