newcompat.ki has already been set in sharedspice.c

This commit is contained in:
Holger Vogt 2026-04-28 16:17:35 +02:00
parent eb751c5767
commit 9ef52c10b9
2 changed files with 5 additions and 1 deletions

View File

@ -65,7 +65,9 @@ void set_compat_mode(void)
newcompat.ps = FALSE;
newcompat.xs = FALSE;
newcompat.lt = FALSE;
newcompat.ki = FALSE;
#ifndef SHARED_MODULE
newcompat.ki = FALSE; /* has already been set in sharedspice.c */
#endif
newcompat.a = FALSE;
newcompat.spe = FALSE;
newcompat.isset = FALSE;

View File

@ -1061,6 +1061,8 @@ ngSpice_Init(SendChar* printfcn, SendStat* statusfcn, ControlledExit* ngspiceexi
if (thisproc) {
if( ciprefix("eeschema", thisproc))
newcompat.ki = TRUE;
else
newcompat.ki = FALSE;
tfree(thisproc);
}