From 566520cef5e1b069ee1c948d75fd1304ddc3e406 Mon Sep 17 00:00:00 2001 From: rlar Date: Tue, 9 Jan 2018 10:01:04 +0100 Subject: [PATCH] unify, add missing GENstate struct member for all instance structs, even when actually unused. --- src/include/ngspice/mifdefs.h | 1 + src/spicelib/devices/ind/inddefs.h | 1 + src/spicelib/devices/txl/txldefs.h | 1 + 3 files changed, 3 insertions(+) diff --git a/src/include/ngspice/mifdefs.h b/src/include/ngspice/mifdefs.h index f12e00864..0c815b01a 100644 --- a/src/include/ngspice/mifdefs.h +++ b/src/include/ngspice/mifdefs.h @@ -55,6 +55,7 @@ struct MIFinstance { struct MIFmodel *MIFmodPtr; /* backpointer to model */ struct MIFinstance *MIFnextInstance; /* pointer to next instance of current model */ IFuid MIFname; /* pointer to character string naming this instance */ + int MIFstates; /* state info, unused */ int num_conn; /* number of connections on the code model */ Mif_Conn_Data_t **conn; /* array of data structures for each connection */ diff --git a/src/spicelib/devices/ind/inddefs.h b/src/spicelib/devices/ind/inddefs.h index 2462fb616..9c59ad0f2 100644 --- a/src/spicelib/devices/ind/inddefs.h +++ b/src/spicelib/devices/ind/inddefs.h @@ -125,6 +125,7 @@ struct sMUTinstance { MUTinstance *MUTnextInstance; /* pointer to next instance of * current model */ IFuid MUTname; /* pointer to character string naming this instance */ + int MUTstates; /* state info, unused */ double MUTcoupling; /* mutual inductance input by user */ double MUTfactor; /* mutual inductance scaled for internal use */ IFuid MUTindName1; /* name of coupled inductor 1 */ diff --git a/src/spicelib/devices/txl/txldefs.h b/src/spicelib/devices/txl/txldefs.h index 8f031e60c..419988c73 100644 --- a/src/spicelib/devices/txl/txldefs.h +++ b/src/spicelib/devices/txl/txldefs.h @@ -16,6 +16,7 @@ typedef struct sTXLinstance { * current model*/ IFuid TXLname; /* pointer to character string naming this instance */ + int TXLstates; /* state info, unused */ int dimensions; /* may we not need this but ... */ int TXLposNode;