Browse Source

Appiled some of dan's patches.

pre-master-46
pnenzi 25 years ago
parent
commit
317c6a2415
  1. 2
      configure.in
  2. 10
      src/frontend/aspice.c
  3. 4
      src/frontend/terminal.c
  4. 4
      src/maths/poly/polyfit.c
  5. 2
      src/misc/Makefile.am
  6. 6
      src/misc/mktemp.c
  7. 9
      src/misc/string.c
  8. 5
      src/misc/tilde.c
  9. 4
      src/spicelib/devices/ltra/ltraset.c

2
configure.in

@ -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

10
src/frontend/aspice.c

@ -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",

4
src/frontend/terminal.c

@ -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>

4
src/maths/poly/polyfit.c

@ -1,5 +1,9 @@
#include <config.h>
#include <math.h>
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#include "polyfit.h"
#include "polyeval.h"

2
src/misc/Makefile.am

@ -16,7 +16,7 @@ libmisc_a_SOURCES = \
printnum.c \
printnum.h \
string.c \
string.h \
stringutil.h \
terminal.c \
terminal.h \
tilde.c \

6
src/misc/mktemp.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

9
src/misc/string.c

@ -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)

5
src/misc/tilde.c

@ -2,11 +2,12 @@
Copyright 1991 Regents of the University of California. All rights reserved.
**********/
#include <config.h>
#include "ngspice.h"
#include <stdio.h>
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#include "ngspice.h"
#include "tilde.h"
#ifdef HAVE_PWD_H

4
src/spicelib/devices/ltra/ltraset.c

@ -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…
Cancel
Save