2003-07-17 Steven Borley <sjb@salix.demon.co.uk>
* src/frontend/resource.c src/frontend/parser/complete.c src/spicelib/devices/txl/txlload.c : #ifdef fixes to get ngspice to compile on Mac OSX
This commit is contained in:
parent
b4e84d4b47
commit
5dae1f7d32
|
|
@ -1,3 +1,9 @@
|
|||
2003-07-17 Steven Borley <sjb@salix.demon.co.uk>
|
||||
|
||||
* src/frontend/resource.c src/frontend/parser/complete.c
|
||||
src/spicelib/devices/txl/txlload.c :
|
||||
#ifdef fixes to get ngspice to compile on Mac OSX
|
||||
|
||||
2003-07-16 Vera Albrecht <albrecht@danalyse.de>
|
||||
|
||||
* frontend/{device.c,parse.c,vectors.c,com_compose.c} :
|
||||
|
|
|
|||
|
|
@ -412,7 +412,7 @@ cp_ccon(bool on)
|
|||
# else
|
||||
# ifdef HAVE_TERMIOS_H
|
||||
|
||||
# ifdef __NetBSD__
|
||||
# if defined(__NetBSD__) || defined(__APPLE_CC__)
|
||||
# define TCGETS
|
||||
# define TCSETS
|
||||
# endif
|
||||
|
|
@ -425,7 +425,7 @@ cp_ccon(bool on)
|
|||
# endif
|
||||
# endif
|
||||
|
||||
# if defined(TERM_GET) || defined(__NetBSD__)
|
||||
# if defined(TERM_GET) || defined(__NetBSD__) || defined(__APPLE_CC__)
|
||||
static bool ison = FALSE;
|
||||
|
||||
if (cp_nocc || !cp_interactive || (ison == on))
|
||||
|
|
@ -433,7 +433,7 @@ cp_ccon(bool on)
|
|||
ison = on;
|
||||
|
||||
if (ison == TRUE) {
|
||||
#ifdef __NetBSD__
|
||||
#if defined(__NetBSD__) || defined(__APPLE_CC__)
|
||||
tcgetattr(fileno(cp_in),&OS_Buf);
|
||||
#else
|
||||
(void) ioctl(fileno(cp_in), TERM_GET, (char *) &OS_Buf);
|
||||
|
|
@ -442,13 +442,13 @@ cp_ccon(bool on)
|
|||
sbuf.c_cc[VEOF] = 0;
|
||||
sbuf.c_cc[VEOL] = ESCAPE;
|
||||
sbuf.c_cc[VEOL2] = CNTRL_D;
|
||||
#ifdef __NetBSD__
|
||||
#if defined(__NetBSD__) || defined(__APPLE_CC__)
|
||||
tcsetattr(fileno(cp_in),TCSANOW,&sbuf);
|
||||
#else
|
||||
(void) ioctl(fileno(cp_in), TERM_SET, (char *) &sbuf);
|
||||
#endif
|
||||
} else {
|
||||
#ifdef __NetBSD__
|
||||
#if defined(__NetBSD__) || defined(__APPLE_CC__)
|
||||
tcsetattr(fileno(cp_in),TCSANOW,&OS_Buf);
|
||||
#else
|
||||
(void) ioctl(fileno(cp_in), TERM_SET, (char *) &OS_Buf);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ char *enddata;
|
|||
void
|
||||
init_rlimits(void)
|
||||
{
|
||||
#ifndef __MINGW32__
|
||||
#if !defined( __MINGW32__) && !defined(__APPLE_CC__)
|
||||
startdata = (char *) baseaddr( );
|
||||
enddata = sbrk(0);
|
||||
#else
|
||||
|
|
@ -314,7 +314,7 @@ fault(void)
|
|||
signal(SIGSEGV, (SIGNAL_FUNCTION) fault); /* SysV style */
|
||||
longjmp(env, 1);
|
||||
}
|
||||
#ifndef __MINGW32__
|
||||
#if !defined(__MINGW32__) && !defined(__APPLE_CC__)
|
||||
static void *
|
||||
baseaddr(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ Author: 1992 Charles Hough
|
|||
#include "sperror.h"
|
||||
#include "suffix.h"
|
||||
|
||||
VI_list_txl *pool_vi_txl;
|
||||
static double ratio[MAX_CP_TX_LINES];
|
||||
static int update_cnv_txl();
|
||||
static VI_list_txl *new_vi_txl();
|
||||
|
|
|
|||
Loading…
Reference in New Issue