From 19a688513c35e20d2d02f974d4c77ceb7ba3233d Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 28 Oct 2020 11:55:33 +0100 Subject: [PATCH] add compatibility mode eg for EAGLE clarify mode a for 'whole netlist' and ll for 'all' --- src/frontend/inpcom.c | 4 ++++ src/include/ngspice/compatmode.h | 17 +++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index b1b734383..28a264e32 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -548,6 +548,10 @@ static void new_compat_mode(void) newcompat.ki = TRUE; if (strstr(behaviour, "a")) newcompat.a = TRUE; + if (strstr(behaviour, "ll")) + newcompat.ll = TRUE; + if (strstr(behaviour, "eg")) + newcompat.eg = TRUE; if (strstr(behaviour, "spe")) { newcompat.spe = TRUE; newcompat.ps = newcompat.lt = newcompat.ki = newcompat.a = FALSE; diff --git a/src/include/ngspice/compatmode.h b/src/include/ngspice/compatmode.h index 1d4caafaf..2a93ddd0d 100644 --- a/src/include/ngspice/compatmode.h +++ b/src/include/ngspice/compatmode.h @@ -5,14 +5,15 @@ struct compat { - bool hs; - bool s3; - bool all; - bool ps; - bool lt; - bool ki; - bool a; - bool spe; + bool hs; /* HSPICE */ + bool s3; /* spice3 */ + bool ll; /* all */ + bool ps; /* PSPICE */ + bool lt; /* LTSPICE */ + bool ki; /* KiCad */ + bool a; /* whole netlist */ + bool spe; /* spectre */ + bool eg; /* EAGLE */ }; extern struct compat newcompat;