pkgsrc/cad/spice/patches/patch-aj
dmcmahill fe4bb072fe - added missing -Wl,-Rpath for the X11 libraries
- fixed program version number reported when spice is run to make it consistent
  with the version of the program.
- several patches to fix compilation warnings due to missing header files and
  some inconsistent variable types.
- broke out previous patch-aa which patched several files into 1 patch per file.
- fixed some code which returned the address of a local char array variable.
- added GNU readline support (a huge improvement in the interface)
- changed USE_X11BASE to USE_X11.  No reason to install into X11BASE.
- removed 'x' target from package Makefile
1999-10-01 17:05:14 +00:00

39 lines
966 B
Text

$NetBSD: patch-aj,v 1.1 1999/10/01 17:05:15 dmcmahill Exp $
diff -cr spice3f4/src/lib/fte/misccoms.c src/lib/fte/misccoms.c
*** spice3f4/src/lib/fte/misccoms.c Thu Jun 17 17:32:53 1993
--- src/lib/fte/misccoms.c Tue Nov 4 22:18:54 1997
***************
*** 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 */