Browse Source

xspice, cleanup, move typedef over to the other ones

pre-master-46
rlar 9 years ago
parent
commit
c3a92e2bb3
  1. 16
      src/include/ngspice/mifdefs.h
  2. 4
      src/include/ngspice/miftypes.h

16
src/include/ngspice/mifdefs.h

@ -49,10 +49,10 @@ NON-STANDARD FEATURES
/* The per-instance data structure */ /* The per-instance data structure */
typedef struct sMIFinstance {
struct MIFinstance {
struct sMIFmodel *MIFmodPtr; /* backpointer to model */
struct sMIFinstance *MIFnextInstance; /* pointer to next instance of current model */
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 */ IFuid MIFname; /* pointer to character string naming this instance */
int num_conn; /* number of connections on the code model */ int num_conn; /* number of connections on the code model */
@ -80,17 +80,17 @@ typedef struct sMIFinstance {
int inst_index; /* Index into inst_table in evt struct in ckt */ int inst_index; /* Index into inst_table in evt struct in ckt */
} MIFinstance ;
};
/* The per model data structure */ /* The per model data structure */
typedef struct sMIFmodel {
struct MIFmodel {
int MIFmodType; /* type index of this device type */ int MIFmodType; /* type index of this device type */
struct sMIFmodel *MIFnextModel; /* pointer to next possible model in linked list */
MIFinstance *MIFinstances; /* pointer to list of instances that have this model */
struct MIFmodel *MIFnextModel; /* pointer to next possible model in linked list */
struct MIFinstance *MIFinstances; /* pointer to list of instances that have this model */
IFuid MIFmodName; /* pointer to character string naming this model */ IFuid MIFmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */ /* --- end of generic struct GENmodel --- */
@ -101,7 +101,7 @@ typedef struct sMIFmodel {
Mif_Boolean_t analog; /* true if this model is analog or hybrid type */ Mif_Boolean_t analog; /* true if this model is analog or hybrid type */
Mif_Boolean_t event_driven; /* true if this model is event-driven or hybrid type */ Mif_Boolean_t event_driven; /* true if this model is event-driven or hybrid type */
} MIFmodel;
};

4
src/include/ngspice/miftypes.h

@ -214,5 +214,9 @@ typedef struct Mif_Inst_Var_Info Mif_Inst_Var_Info_t;
/* types from mifcmdat.h */ /* types from mifcmdat.h */
typedef struct Mif_Private Mif_Private_t; typedef struct Mif_Private Mif_Private_t;
/* types from mifdefs.h */
typedef struct MIFinstance MIFinstance;
typedef struct MIFmodel MIFmodel;
#endif #endif
Loading…
Cancel
Save