Revert "Add a flag to indicate when U* devices are translated to Xspice. The flag is cleared in inp_spsource and set in u_instances. A call to were_devices_translated() has been added to the start of inp_probe, with a comment that the return value can be used for "probe alli" suppression. Code for suppression of alli is not included."

This reverts commit bc8d2605f9.
This commit is contained in:
Brian Taylor 2023-03-24 10:56:09 -07:00
parent bc8d2605f9
commit 3378ecb6e2
4 changed files with 0 additions and 23 deletions

View File

@ -510,10 +510,6 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
startTime = seconds();
/* inp_source() called with fp: load from file, */
/* called with *fp == NULL and intfile: we want to load circuit from circarray */
/* Clear the flag indicating U* devices have been translated to Xspice */
set_udevices_translated(FALSE);
if (fp || intfile) {
deck = inp_readall(fp, dir_name, comfile, intfile, &expr_w_temper);

View File

@ -11,7 +11,6 @@
#include "ngspice/inpdefs.h"
#include "ngspice/wordlist.h"
#include "ngspice/stringskip.h"
#include "inpcom.h"
void inp_probe(struct card* card);
void modprobenames(INPtables* tab);
@ -63,9 +62,6 @@ void inp_probe(struct card* deck)
if (probes == NULL)
return;
/* If were_udevices_translated() returns TRUE, then you can ignore alli */
(void) were_udevices_translated();
/* check for '.save' and (in a .control section) 'save'.
If not found, add '.save all' */
for (card = deck; card; card = card->nextcard) {

View File

@ -79,8 +79,6 @@ static struct library {
static int num_libraries;
static bool udevices_translated = FALSE;
struct names {
char *names[N_SUBCKT_W_PARAMS];
int num_names;
@ -8352,16 +8350,6 @@ static void rem_double_braces(struct card* newcard)
}
}
void set_udevices_translated(bool val)
{
udevices_translated = val;
}
bool were_udevices_translated(void)
{
return udevices_translated;
}
#ifdef INTEGRATE_UDEVICES
static void list_the_cards(struct card *startcard, char *prefix)
{
@ -8466,7 +8454,6 @@ static struct card *u_instances(struct card *startcard)
if (last_newcard) {
last_newcard->nextcard = card; // the .ends card
}
set_udevices_translated(TRUE);
} else {
models_ok = models_not_ok = 0;
udev_ok = udev_not_ok = 0;

View File

@ -9,6 +9,4 @@
struct card *insert_new_line(struct card *card, char *line,
int linenum, int linenum_orig);
void set_udevices_translated(bool val);
bool were_udevices_translated(void);
#endif