cleanup, reduce `#include' incantations

This commit is contained in:
rlar 2014-10-05 10:39:14 +02:00
parent fc9976e2fa
commit 31b5e7d40a
3 changed files with 4 additions and 42 deletions

View File

@ -1,31 +1,16 @@
#include "ngspice/ngspice.h" #include "ngspice/ngspice.h"
#include "ngspice/config.h"
#include "ngspice/cktdefs.h"
//#include "ngspice/cktaccept.h"
#include "ngspice/trandefs.h"
#include "ngspice/sperror.h"
#include "ngspice/fteext.h" #include "ngspice/fteext.h"
#include "ngspice/missing_math.h"
#include "../frontend/outitf.h" #include "../frontend/outitf.h"
#include <math.h> #include <math.h>
#ifdef XSPICE #ifdef XSPICE
/* gtri - add - wbk - Add headers */
#include "ngspice/miftypes.h"
#include "ngspice/evt.h"
#include "ngspice/mif.h"
#include "ngspice/evtproto.h" #include "ngspice/evtproto.h"
#include "ngspice/ipctiein.h"
/* gtri - end - wbk - Add headers */
#endif #endif
#include "ngspice/lxt2_write.h" #include "ngspice/lxt2_write.h"
#ifdef CLUSTER
#include "cluster.h"
#endif
#define CKALLOC(var,size,type) \ #define CKALLOC(var,size,type) \
if(size) { \ if(size) { \
if(!(var = (type *) MALLOC((size) * sizeof(type)))) \ if(!(var = (type *) MALLOC((size) * sizeof(type)))) \

View File

@ -1,30 +1,15 @@
#include "ngspice/ngspice.h" #include "ngspice/ngspice.h"
#include "ngspice/config.h"
#include "ngspice/cktdefs.h"
//#include "ngspice/cktaccept.h"
#include "ngspice/trandefs.h"
#include "ngspice/sperror.h" #include "ngspice/sperror.h"
#include "ngspice/fteext.h" #include "ngspice/fteext.h"
#include "ngspice/missing_math.h"
#include "../frontend/outitf.h" #include "../frontend/outitf.h"
#ifdef XSPICE #ifdef XSPICE
/* gtri - add - wbk - Add headers */
#include "ngspice/miftypes.h"
#include "ngspice/evt.h"
#include "ngspice/mif.h"
#include "ngspice/evtproto.h" #include "ngspice/evtproto.h"
#include "ngspice/ipctiein.h"
/* gtri - end - wbk - Add headers */
#endif #endif
#include "ngspice/lxt2_write.h" #include "ngspice/lxt2_write.h"
#ifdef CLUSTER
#include "cluster.h"
#endif
#define CKALLOC(var,size,type) \ #define CKALLOC(var,size,type) \
if(size) { \ if(size) { \
if(!(var = (type *) MALLOC((size) * sizeof(type)))) \ if(!(var = (type *) MALLOC((size) * sizeof(type)))) \

View File

@ -1,14 +1,6 @@
#include "ngspice/ngspice.h" #include "ngspice/ngspice.h"
#include "ngspice/cktdefs.h"
//#include "util.h"
#include "ngspice/mif.h"
#include "ngspice/evt.h"
#include "ngspice/evtudn.h"
#include "ngspice/mifproto.h"
#include "ngspice/evtproto.h" #include "ngspice/evtproto.h"
#include "ngspice/cm.h"
#include <math.h> #include <math.h>
static char *EVTbitmap(int i); static char *EVTbitmap(int i);