Cleaned up the code removing unnecessary includes.
This commit is contained in:
parent
96afae120e
commit
ada277e81b
|
|
@ -1,3 +1,7 @@
|
|||
2004-01-20 Paolo Nenzi <p.nenzi@ieee.org>
|
||||
|
||||
* src/maths/ni/*: Cleaned up code removing unnecessary includes.
|
||||
|
||||
2004-01-15 Paolo Nenzi <p.nenzi@ieee.org>
|
||||
|
||||
* src/spicelib/devices/{cccs,ccvs,vccs,vcvs}/*: cleaned up the code.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ Modified 1999 Emmanuel Rouat
|
|||
*/
|
||||
|
||||
#include "ngspice.h"
|
||||
#include <stdio.h>
|
||||
#include "trandefs.h"
|
||||
#include "cktdefs.h"
|
||||
#include "sperror.h"
|
||||
|
|
@ -23,7 +22,7 @@ Modified 1999 Emmanuel Rouat
|
|||
|
||||
|
||||
int
|
||||
NIacIter(register CKTcircuit *ckt)
|
||||
NIacIter(CKTcircuit *ckt)
|
||||
{
|
||||
int error;
|
||||
int ignore;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ Author: 1985 Thomas L. Quarles
|
|||
**********/
|
||||
|
||||
#include "ngspice.h"
|
||||
#include <stdio.h>
|
||||
#include "cktdefs.h"
|
||||
#include "sperror.h"
|
||||
#include "nicomcof.h"
|
||||
|
|
|
|||
|
|
@ -11,18 +11,17 @@ Author: 1985 Thomas L. Quarles
|
|||
*/
|
||||
|
||||
#include "ngspice.h"
|
||||
#include <stdio.h>
|
||||
#include "cktdefs.h"
|
||||
#include "smpdefs.h"
|
||||
#include "niconv.h"
|
||||
|
||||
|
||||
int
|
||||
NIconvTest(register CKTcircuit *ckt)
|
||||
NIconvTest(CKTcircuit *ckt)
|
||||
{
|
||||
register int i; /* generic loop variable */
|
||||
register int size; /* size of the matrix */
|
||||
register CKTnode *node; /* current matrix entry */
|
||||
int i; /* generic loop variable */
|
||||
int size; /* size of the matrix */
|
||||
CKTnode *node; /* current matrix entry */
|
||||
double old;
|
||||
double new;
|
||||
double tol;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ Author: 1985 Thomas L. Quarles
|
|||
|
||||
|
||||
void
|
||||
NIdestroy(register CKTcircuit *ckt)
|
||||
NIdestroy(CKTcircuit *ckt)
|
||||
{
|
||||
if (ckt->CKTmatrix)
|
||||
SMPdestroy(ckt->CKTmatrix);
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ Author: 1988 Jaijeet S. Roychowdhury
|
|||
*/
|
||||
|
||||
#include "ngspice.h"
|
||||
#include <stdio.h>
|
||||
#include "trandefs.h"
|
||||
#include "cktdefs.h"
|
||||
#include "sperror.h"
|
||||
|
|
@ -21,7 +20,7 @@ Author: 1988 Jaijeet S. Roychowdhury
|
|||
|
||||
|
||||
int
|
||||
NIdIter(register CKTcircuit *ckt)
|
||||
NIdIter(CKTcircuit *ckt)
|
||||
{
|
||||
int error;
|
||||
int ignore;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ Author: 1985 Thomas L. Quarles
|
|||
|
||||
#include "ngspice.h"
|
||||
#include "cktdefs.h"
|
||||
#include <stdio.h>
|
||||
#include "sperror.h"
|
||||
#include "smpdefs.h"
|
||||
#include "niinit.h"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ Author: 1985 Thomas L. Quarles
|
|||
*/
|
||||
|
||||
#include "ngspice.h"
|
||||
#include <stdio.h>
|
||||
#include "cktdefs.h"
|
||||
#include "sperror.h"
|
||||
#include "niinteg.h"
|
||||
|
|
@ -17,7 +16,7 @@ Author: 1985 Thomas L. Quarles
|
|||
#define ccap qcap+1
|
||||
|
||||
int
|
||||
NIintegrate(register CKTcircuit *ckt, double *geq, double *ceq, double cap, int qcap)
|
||||
NIintegrate(CKTcircuit *ckt, double *geq, double *ceq, double cap, int qcap)
|
||||
{
|
||||
static char *ordmsg = "Illegal integration order";
|
||||
static char *methodmsg = "Unknown integration method";
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ Modified: 2001 AlansFixes
|
|||
*/
|
||||
|
||||
#include "ngspice.h"
|
||||
#include <stdio.h>
|
||||
#include "trandefs.h"
|
||||
#include "cktdefs.h"
|
||||
#include "smpdefs.h"
|
||||
|
|
@ -25,7 +24,7 @@ Modified: 2001 AlansFixes
|
|||
/* NIiter() - return value is non-zero for convergence failure */
|
||||
|
||||
int
|
||||
NIiter(register CKTcircuit *ckt, int maxIter)
|
||||
NIiter(CKTcircuit *ckt, int maxIter)
|
||||
{
|
||||
int iterno;
|
||||
int ipass;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ Author: 1985 Thomas L. Quarles
|
|||
*/
|
||||
|
||||
#include "ngspice.h"
|
||||
#include <stdio.h>
|
||||
#include "trandefs.h"
|
||||
#include "cktdefs.h"
|
||||
#include "sperror.h"
|
||||
|
|
@ -23,13 +22,13 @@ Author: 1985 Thomas L. Quarles
|
|||
|
||||
#ifdef PREDICTOR
|
||||
int
|
||||
NIpred(register CKTcircuit * ckt)
|
||||
NIpred(CKTcircuit * ckt)
|
||||
|
||||
{
|
||||
int i;
|
||||
double *temp;
|
||||
int size;
|
||||
register CKTnode *node;
|
||||
CKTnode *node;
|
||||
|
||||
/* for our prediction, we have:
|
||||
* ckt->CKTrhs[] is the current solution
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ Author: 1985 Thomas L. Quarles
|
|||
|
||||
#include "ngspice.h"
|
||||
#include "cktdefs.h"
|
||||
#include <stdio.h>
|
||||
#include "smpdefs.h"
|
||||
#include "sperror.h"
|
||||
#include "nisenre.h"
|
||||
|
|
@ -23,9 +22,9 @@ Author: 1985 Thomas L. Quarles
|
|||
(type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM);
|
||||
|
||||
int
|
||||
NIsenReinit(register CKTcircuit *ckt)
|
||||
NIsenReinit(CKTcircuit *ckt)
|
||||
{
|
||||
register int size;
|
||||
int size;
|
||||
int senparms;
|
||||
int i;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue