add compatibility mode eg for EAGLE

clarify mode a for 'whole netlist' and ll for 'all'
This commit is contained in:
Holger Vogt
2020-12-22 11:07:31 +01:00
parent dd86bdee46
commit 19a688513c
2 changed files with 13 additions and 8 deletions
+4
View File
@@ -548,6 +548,10 @@ static void new_compat_mode(void)
newcompat.ki = TRUE; newcompat.ki = TRUE;
if (strstr(behaviour, "a")) if (strstr(behaviour, "a"))
newcompat.a = TRUE; newcompat.a = TRUE;
if (strstr(behaviour, "ll"))
newcompat.ll = TRUE;
if (strstr(behaviour, "eg"))
newcompat.eg = TRUE;
if (strstr(behaviour, "spe")) { if (strstr(behaviour, "spe")) {
newcompat.spe = TRUE; newcompat.spe = TRUE;
newcompat.ps = newcompat.lt = newcompat.ki = newcompat.a = FALSE; newcompat.ps = newcompat.lt = newcompat.ki = newcompat.a = FALSE;
+9 -8
View File
@@ -5,14 +5,15 @@
struct compat struct compat
{ {
bool hs; bool hs; /* HSPICE */
bool s3; bool s3; /* spice3 */
bool all; bool ll; /* all */
bool ps; bool ps; /* PSPICE */
bool lt; bool lt; /* LTSPICE */
bool ki; bool ki; /* KiCad */
bool a; bool a; /* whole netlist */
bool spe; bool spe; /* spectre */
bool eg; /* EAGLE */
}; };
extern struct compat newcompat; extern struct compat newcompat;