Discard all XSPICE event data when using "-b -r", as there is no way

to access it.  An initial step for FR #105: "Esave + rawfile".
This commit is contained in:
Giles Atkinson 2026-04-01 07:26:20 +01:00
parent e42a9e6b5c
commit 82c91abea4
3 changed files with 8 additions and 0 deletions

View File

@ -162,4 +162,5 @@ int Evt_Parse_Node(const char *node, struct node_parse *result);
void Evt_purge_free_outputs(void);
void EVTdiscard(void);
#endif

View File

@ -1563,6 +1563,11 @@ int main(int argc, char **argv)
are ignored, except .save, which has been handled by ft_dotsaves()
from within inp_spsource (), data are put into linked list dbs.
*/
#ifdef XSPICE
// Do not save any XSPICE node data, as there is no way to use it.
EVTdiscard();
#endif
int error2 = ft_dorun(ft_rawfile);
/* Execute the .whatever lines found in the deck, after we are done running. */
if (ft_cktcoms(TRUE) || error2) {

View File

@ -963,6 +963,8 @@ static void set_all(CKTcircuit *ckt, Mif_Boolean_t val)
node_table[i]->save = val;
}
void EVTdiscard(void) {set_all(g_mif_info.ckt, MIF_FALSE);}
void
EVTsave(wordlist *wl)
{