From ce8bce79477198e9df96fbbfd01aaf5700544da2 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 29 Mar 2024 17:23:59 +0100 Subject: [PATCH] Define the members of the struct in the correct sequence. --- src/include/ngspice/devdefs.h | 5 +++-- src/include/ngspice/ifsim.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/include/ngspice/devdefs.h b/src/include/ngspice/devdefs.h index 870708b69..09af7ce68 100644 --- a/src/include/ngspice/devdefs.h +++ b/src/include/ngspice/devdefs.h @@ -107,6 +107,9 @@ typedef struct SPICEdev { /* noise routine */ int (*DEVsoaCheck)(CKTcircuit*,GENmodel*); /* subroutine to call on soa check */ + int *DEVinstSize; /* size of an instance */ + int *DEVmodSize; /* size of a model */ + #ifdef CIDER void (*DEVdump)(GENmodel *, CKTcircuit *); void (*DEVacct)(GENmodel *, CKTcircuit *, FILE *); @@ -114,8 +117,6 @@ typedef struct SPICEdev { * now used only by cider numerical devices */ #endif - int *DEVinstSize; /* size of an instance */ - int *DEVmodSize; /* size of a model */ #ifdef KLU int (*DEVbindCSC)(GENmodel *, CKTcircuit *); diff --git a/src/include/ngspice/ifsim.h b/src/include/ngspice/ifsim.h index cf019be2e..1802a2a60 100644 --- a/src/include/ngspice/ifsim.h +++ b/src/include/ngspice/ifsim.h @@ -282,6 +282,8 @@ struct IFdevice { int *numModelParms; /* number of model parameter descriptors */ IFparm *modelParms; /* array of model parameter descriptors */ + int flags; /* DEV_ */ + /* gtri - modify - wbk - 10/11/90 - add entries to hold data required */ /* by new parser */ #ifdef XSPICE @@ -298,8 +300,6 @@ struct IFdevice { /* gtri - end - wbk - 10/11/90 */ #endif - int flags; /* DEV_ */ - #ifdef OSDI const void *registry_entry; #endif