mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
d38479ecaa
* Respect CFLAGS. * Make less use of __FreeBSD__. * Use more system-defined make variables. PR: 15746 Submitted by: maintainer
37 lines
863 B
Plaintext
37 lines
863 B
Plaintext
*** spice/common/src/lib/fte/misccoms.c.orig Wed Mar 9 04:15:44 1994
|
|
--- spice/common/src/lib/fte/misccoms.c Sun Dec 12 14:56:44 1999
|
|
***************
|
|
*** 11,16 ****
|
|
--- 11,24 ----
|
|
#include "hlpdefs.h"
|
|
#include "suffix.h"
|
|
|
|
+ #ifdef HAS_GNUREADLINE
|
|
+ #include <readline/readline.h>
|
|
+ #include <readline/history.h>
|
|
+
|
|
+ extern int gnu_history_lines;
|
|
+ extern char gnu_history_file[];
|
|
+ #endif
|
|
+
|
|
static void byemesg();
|
|
|
|
void
|
|
***************
|
|
*** 299,304 ****
|
|
--- 307,320 ----
|
|
byemesg();
|
|
} else
|
|
byemesg();
|
|
+
|
|
+ #ifdef HAS_GNUREADLINE
|
|
+ /* Added GNU Readline Support -- Andrew Veliath <veliaa@rpi.edu> */
|
|
+ if (cp_interactive && (cp_maxhistlength > 0)) {
|
|
+ stifle_history(cp_maxhistlength);
|
|
+ write_history(gnu_history_file);
|
|
+ }
|
|
+ #endif /* HAS_GNUREADLINE */
|
|
|
|
exit(EXIT_NORMAL);
|
|
/* NOTREACHED */
|