add function prototype pspice_compat
to deal with compatibility issues during loading a PSPICE library
This commit is contained in:
parent
4aff986ee8
commit
98fe623ba4
|
|
@ -146,6 +146,7 @@ static char *inp_pathresolve(const char *name);
|
||||||
static char *inp_pathresolve_at(char *name, char *dir);
|
static char *inp_pathresolve_at(char *name, char *dir);
|
||||||
static char *search_plain_identifier(char *str, const char *identifier);
|
static char *search_plain_identifier(char *str, const char *identifier);
|
||||||
void tprint(struct card *deck);
|
void tprint(struct card *deck);
|
||||||
|
static struct card *pspice_compat(struct card *newcard);
|
||||||
|
|
||||||
struct inp_read_t
|
struct inp_read_t
|
||||||
{ struct card *cc;
|
{ struct card *cc;
|
||||||
|
|
@ -852,6 +853,8 @@ inp_read(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newcard) {
|
if (newcard) {
|
||||||
|
if (inp_compat_mode == COMPATMODE_PS)
|
||||||
|
newcard = pspice_compat(newcard);
|
||||||
int line_number_inc = 1;
|
int line_number_inc = 1;
|
||||||
end->nextcard = newcard;
|
end->nextcard = newcard;
|
||||||
/* Renumber the lines */
|
/* Renumber the lines */
|
||||||
|
|
@ -6302,3 +6305,12 @@ inp_meas_current(struct card *deck)
|
||||||
new_rep = repn;
|
new_rep = repn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static struct card *
|
||||||
|
pspice_compat(struct card *oldcard)
|
||||||
|
{
|
||||||
|
struct card *card, *newcard, *nextcard;
|
||||||
|
newcard = oldcard;
|
||||||
|
return newcard;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue