add #include's for visibility of prototypes to their function definitions

move some typedefs to "typedef.h"
This commit is contained in:
rlar 2010-07-30 16:09:38 +00:00
parent 73890e3cdb
commit 8ff62fd262
18 changed files with 53 additions and 7 deletions

View File

@ -1,3 +1,24 @@
2010-07-30 Robert Larice
* src/frontend/com_dl.c ,
* src/frontend/com_help.c ,
* src/frontend/com_set.c ,
* src/frontend/com_sysinfo.c ,
* src/frontend/hcomp.c ,
* src/frontend/parse.h ,
* src/include/pzdefs.h ,
* src/include/sen2defs.h ,
* src/include/typedefs.h ,
* src/main.c ,
* src/maths/misc/accuracy.c ,
* src/maths/misc/bernoull.c ,
* src/maths/misc/norm.c ,
* src/ngsconvert.c ,
* src/spicelib/analysis/cktdelt.c ,
* src/spicelib/devices/limit.c ,
* src/xspice/evt/evtaccept.c :
add #include's for visibility of prototypes to their function definitions
move some typedefs to "typedef.h"
2010-07-30 Robert Larice
* src/include/ifsim.h ,
* src/include/inpptree.h ,

View File

@ -2,6 +2,7 @@
#include "ftedefs.h"
#include <devdefs.h> /* solve deps in dev.h*/
#include <../spicelib/devices/dev.h> /*for load library commands*/
#include "com_dl.h"
#ifdef XSPICE
void com_codemodel(wordlist *wl){

View File

@ -7,6 +7,7 @@
#include <bool.h>
#include "hcomp.h"
#include "com_help.h"
void

View File

@ -5,6 +5,7 @@
#include <wordlist.h>
#include "variable.h"
#include "com_set.h"
/* The set command. Syntax is set [opt ...] [opt = val ...]. Val may

View File

@ -11,6 +11,7 @@
#include "config.h"
#include "ngspice.h"
#include "cpdefs.h"
#include "fteext.h"
/* We might compile for Windows, but only as a console application (e.g. tcl) */
#if defined(HAS_WINDOWS) || defined(__MINGW32__) || defined(_MSC_VER)

View File

@ -1,5 +1,6 @@
#include <cpdefs.h>
#include <string.h>
#include "fteext.h"
int
hcomp(const void *a, const void *b)

View File

@ -16,5 +16,6 @@ struct pnode * ft_getpnames(wordlist *wl, bool check);
#endif
void free_pnode_x(struct pnode *t);
void free_pnode_o(struct pnode *t);
#endif

View File

@ -6,18 +6,19 @@
#include "jobdefs.h"
#include <math.h>
#include "complex.h"
#include "typedefs.h"
typedef struct strial {
struct PZtrial {
SPcomplex s, f_raw, f_def;
struct strial *next, *prev;
PZtrial *next, *prev;
int mag_raw, mag_def;
int multiplicity;
int flags;
int seq_num;
int count;
} PZtrial;
};
typedef struct {
struct PZAN {
int JOBtype;
JOB *JOBnextJob;
IFuid JOBname;
@ -36,7 +37,7 @@ typedef struct {
int PZnZeros;
double *PZdrive_pptr;
double *PZdrive_nptr;
} PZAN;
};
#define PZ_DO_POLES 0x1
#define PZ_DO_ZEROS 0x2

View File

@ -11,8 +11,9 @@ Copyright 1990 Regents of the University of California. All rights reserved.
#include "smpdefs.h"
#include "jobdefs.h"
#include "typedefs.h"
typedef struct {
struct SENstruct {
int JOBtype;
JOB *JOBnextJob; /* pointer to next thing to do */
char *JOBname; /* name of this job */
@ -47,7 +48,7 @@ typedef struct {
double *SEN_parmVal; /* table containing values of design parameters */
char **SEN_parmName; /* table containing names of design parameters */
} SENstruct;
};
/* SENmode */
#define DCSEN 0x1

View File

@ -35,4 +35,11 @@ typedef struct graph GRAPH;
struct dbcomm;
typedef struct PZtrial PZtrial;
typedef struct PZAN PZAN;
typedef struct SENstruct SENstruct;
#endif

View File

@ -67,6 +67,8 @@ extern int rl_catch_signals; /* missing from editline/readline.h */
#include "maths/misc/accuracy.h"
#endif
#include "mifproto.h"
#include "evtproto.h"
#if defined(HAVE_GNUREADLINE) || defined(HAVE_BSDEDITLINE)
char history_file[512] = {'\0'};

View File

@ -5,6 +5,7 @@ Modified: 2001 Paolo Nenzi
**********/
#include "ngspice.h"
#include "accuracy.h"
/* XXX Globals are hiding here.

View File

@ -5,6 +5,7 @@ Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group
#include "ngspice.h"
#include "accuracy.h"
#include "bernoull.h"
/*
* this function computes the bernoulli function

View File

@ -4,6 +4,7 @@ Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group
**********/
#include "ngspice.h"
#include "norm.h"
/* functions to compute max and one norms of a given vector of doubles */

View File

@ -15,6 +15,7 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
#include <ftedefs.h>
#include <sim.h>
#include "suffix.h"
#include "frontend/display.h"
FILE *cp_in = NULL;
FILE *cp_out = NULL;

View File

@ -8,6 +8,7 @@ Author: 1985 Thomas L. Quarles
#include "jobdefs.h"
#include "ifsim.h"
#include "iferrmsg.h"
#include "ckt.h"
/* ARGSUSED */

View File

@ -3,6 +3,8 @@ Copyright 1991 Regents of the University of California. All rights reserved.
Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group
**********/
#include "devdefs.h"
/* limiting routines for junction voltages */
double DvRevMax = 0.5, DvFwdMax = 50.0e-3;

View File

@ -46,6 +46,7 @@ NON-STANDARD FEATURES
#include "mif.h"
#include "evt.h"
#include "evtproto.h"