Appiled some of dan's patches.
This commit is contained in:
parent
8aa1dc20a8
commit
317c6a2415
|
|
@ -133,7 +133,7 @@ AC_SEARCH_LIBS(tputs,ncurses termcap,AC_DEFINE(HAVE_TERMCAP),
|
|||
|
||||
|
||||
AC_HEADER_DIRENT
|
||||
AC_CHECK_HEADERS(ctype.h unistd.h pwd.h fcntl.h)
|
||||
AC_CHECK_HEADERS(ctype.h unistd.h pwd.h fcntl.h string.h)
|
||||
AC_HEADER_SYS_WAIT
|
||||
AC_HEADER_STAT
|
||||
|
||||
|
|
|
|||
|
|
@ -176,6 +176,14 @@ sigchild(void)
|
|||
* whether the exit was normal or not.
|
||||
*/
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
pid_t status;
|
||||
#else
|
||||
union wait status;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
void
|
||||
ft_checkkids(void)
|
||||
{
|
||||
|
|
@ -191,7 +199,7 @@ ft_checkkids(void)
|
|||
here = TRUE;
|
||||
|
||||
while (numchanged > 0) {
|
||||
pid = wait((union wait *) NULL);
|
||||
pid = wait((&status);
|
||||
if (pid == -1) {
|
||||
fprintf(cp_err,
|
||||
"ft_checkkids: Internal Error: should be %d jobs done but there aren't any.\n",
|
||||
|
|
|
|||
|
|
@ -24,6 +24,10 @@ Author: 1986 Wayne A. Christopher, U. C. Berkeley CAD Group
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_TERMCAP
|
||||
#include <termcap.h>
|
||||
#endif
|
||||
|
||||
#include <ngspice.h>
|
||||
#include <cpdefs.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
#include <config.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
#include "polyfit.h"
|
||||
#include "polyeval.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ libmisc_a_SOURCES = \
|
|||
printnum.c \
|
||||
printnum.h \
|
||||
string.c \
|
||||
string.h \
|
||||
stringutil.h \
|
||||
terminal.c \
|
||||
terminal.h \
|
||||
tilde.c \
|
||||
|
|
|
|||
|
|
@ -9,13 +9,17 @@ Copyright 1990 Regents of the University of California. All rights reserved.
|
|||
*/
|
||||
|
||||
#include "ngspice.h"
|
||||
#include "stdio.h"
|
||||
#include <stdio.h>
|
||||
#include "mktemp.h"
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#ifndef TEMPFORMAT
|
||||
#define TEMPFORMAT "temp%s%d"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -7,9 +7,14 @@ Copyright 1990 Regents of the University of California. All rights reserved.
|
|||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#include "ngspice.h"
|
||||
#include "stdio.h"
|
||||
#include "string.h"
|
||||
#include "stringutil.h"
|
||||
|
||||
int
|
||||
prefix(register char *p, register char *s)
|
||||
|
|
|
|||
|
|
@ -2,11 +2,12 @@
|
|||
Copyright 1991 Regents of the University of California. All rights reserved.
|
||||
**********/
|
||||
|
||||
|
||||
#include <config.h>
|
||||
#include "ngspice.h"
|
||||
#include <stdio.h>
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
#include "ngspice.h"
|
||||
#include "tilde.h"
|
||||
|
||||
#ifdef HAVE_PWD_H
|
||||
|
|
|
|||
|
|
@ -235,11 +235,11 @@ LTRAunsetup(inModel, ckt)
|
|||
for (here = model->LTRAinstances; here != NULL;
|
||||
here = here->LTRAnextInstance) {
|
||||
if (here->LTRAbrEq1) {
|
||||
CKTdltNNum(ckt, (void *) here->LTRAbrEq1);
|
||||
CKTdltNNum(ckt, here->LTRAbrEq1);
|
||||
here->LTRAbrEq1 = 0;
|
||||
}
|
||||
if (here->LTRAbrEq2) {
|
||||
CKTdltNNum(ckt, (void *) here->LTRAbrEq2);
|
||||
CKTdltNNum(ckt, here->LTRAbrEq2);
|
||||
here->LTRAbrEq2 = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue