ansi function prototypes, and stdlib.h for exit()

This commit is contained in:
rlar 2010-06-26 20:22:50 +00:00
parent 5e35b809ec
commit ad947547a8
4 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2010-06-26 Robert Larice
* src/include/opdefs.h,
* src/include/trandefs.h :
ansi function declarations (prototypes)
* src/ngproc2mod.c:
exit() lives in <stdlib.h>
2010-06-26 Robert Larice
* src/frontend/commands.c:
NULL needs no cast

View File

@ -7,6 +7,7 @@ Author: 1985 Thomas L. Quarles
#define DCOP
#include "cktdefs.h"
#include "jobdefs.h"
#include "tskdefs.h"
/*
@ -20,6 +21,6 @@ typedef struct {
char *JOBname;
} OP;
extern int DCOsetParm();
extern int DCOaskQuest();
extern int DCOsetParm(CKTcircuit *ckt, void *anal, int which, IFvalue *value);
extern int DCOaskQuest(CKTcircuit *ckt, void *anal, int which, IFvalue *value);
#endif /*DCOP*/

View File

@ -8,6 +8,7 @@ Author: 1985 Thomas L. Quarles
#define TRAN
#include "cktdefs.h"
#include "jobdefs.h"
#include "tskdefs.h"
/*
@ -31,6 +32,6 @@ typedef struct {
#define TRAN_TSTEP 3
#define TRAN_TMAX 4
#define TRAN_UIC 5
extern int TRANsetParm();
extern int TRANaskQuest();
extern int TRANsetParm(CKTcircuit *ckt, void *anal, int which, IFvalue *value);
extern int TRANaskQuest(CKTcircuit *ckt, void *anal, int which,IFvalue *value);
#endif /*TRAN*/

View File

@ -6,12 +6,11 @@ Copyright 1990 Regents of the University of California. All rights reserved.
#include <config.h>
#include "ngspice.h"
#include <stdio.h>
#include <stdlib.h>
#include "inpdefs.h"
#include "suffix.h"
void exit();
#ifdef __STDC__
void getdata(double*,int,int);
#else /* stdc */