b32dace1ce
the Tcl/Tk scripting language. The project is open-source (BSD license) and based upon the NG-Spice source code base with many improvements Features and Improvements - Fully Tcl scriptable - installs with 'package require spice' statement - Hspice syntax (SpicePP). - GUI interfaces, various (Tk). - SpiceWish (BLT graph widget) - BLT (tcl compatible) vectors for storage, manipulation and arithmetic upon Spice waveforms. - Xspice additions (Georgia Tech). - Trigger upon waveform events. - Spice 'simulator state' save and restore for rapid 'what-if' simulations (no longer need to re-simulate from the beginning each time a device value is changed). Author: Stefan Jones <stefan.jones@multigig.com> WWW: http://tclspice.sourceforge.net/ PR: ports/99399 Submitted by: Stanislav Sedov <ssedov@mbsd.msk.ru>
45 lines
1.5 KiB
C
45 lines
1.5 KiB
C
--- ./src/frontend/parser/complete.c.orig Sat Jun 24 01:40:09 2006
|
|
+++ ./src/frontend/parser/complete.c Sat Jun 24 01:40:17 2006
|
|
@@ -415,7 +415,7 @@
|
|
# else
|
|
# ifdef HAVE_TERMIOS_H
|
|
|
|
-# if defined(__NetBSD__) || defined(__APPLE_CC__)
|
|
+# if defined(__NetBSD__) || defined(__APPLE_CC__) || defined(__FreeBSD__)
|
|
# define TCGETS
|
|
# define TCSETS
|
|
# endif
|
|
@@ -428,7 +428,7 @@
|
|
# endif
|
|
# endif
|
|
|
|
-# if defined(TERM_GET) || defined(__NetBSD__) || defined(__APPLE_CC__)
|
|
+# if defined(TERM_GET) || defined(__NetBSD__) || defined(__APPLE_CC__) || defined(__FreeBSD__)
|
|
static bool ison = FALSE;
|
|
|
|
if (cp_nocc || !cp_interactive || (ison == on))
|
|
@@ -436,7 +436,7 @@
|
|
ison = on;
|
|
|
|
if (ison == TRUE) {
|
|
-#if defined(__NetBSD__) || defined(__APPLE_CC__)
|
|
+#if defined(__NetBSD__) || defined(__APPLE_CC__) || defined(__FreeBSD__)
|
|
tcgetattr(fileno(cp_in),&OS_Buf);
|
|
#else
|
|
(void) ioctl(fileno(cp_in), TERM_GET, (char *) &OS_Buf);
|
|
@@ -445,13 +445,13 @@
|
|
sbuf.c_cc[VEOF] = 0;
|
|
sbuf.c_cc[VEOL] = ESCAPE;
|
|
sbuf.c_cc[VEOL2] = CNTRL_D;
|
|
-#if defined(__NetBSD__) || defined(__APPLE_CC__)
|
|
+#if defined(__NetBSD__) || defined(__APPLE_CC__) || defined(__FreeBSD__)
|
|
tcsetattr(fileno(cp_in),TCSANOW,&sbuf);
|
|
#else
|
|
(void) ioctl(fileno(cp_in), TERM_SET, (char *) &sbuf);
|
|
#endif
|
|
} else {
|
|
-#if defined(__NetBSD__) || defined(__APPLE_CC__)
|
|
+#if defined(__NetBSD__) || defined(__APPLE_CC__) || defined(__FreeBSD__)
|
|
tcsetattr(fileno(cp_in),TCSANOW,&OS_Buf);
|
|
#else
|
|
(void) ioctl(fileno(cp_in), TERM_SET, (char *) &OS_Buf);
|