Browse Source

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

pre-master-46
rlar 16 years ago
parent
commit
ad947547a8
  1. 7
      ChangeLog
  2. 5
      src/include/opdefs.h
  3. 5
      src/include/trandefs.h
  4. 3
      src/ngproc2mod.c

7
ChangeLog

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

5
src/include/opdefs.h

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

5
src/include/trandefs.h

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

3
src/ngproc2mod.c

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

Loading…
Cancel
Save