add function prototype pspice_compat

to deal with compatibility issues during loading
a PSPICE library
This commit is contained in:
Holger Vogt 2018-05-16 00:14:31 +02:00
parent 4aff986ee8
commit 98fe623ba4
1 changed files with 12 additions and 0 deletions

View File

@ -146,6 +146,7 @@ static char *inp_pathresolve(const char *name);
static char *inp_pathresolve_at(char *name, char *dir);
static char *search_plain_identifier(char *str, const char *identifier);
void tprint(struct card *deck);
static struct card *pspice_compat(struct card *newcard);
struct inp_read_t
{ struct card *cc;
@ -852,6 +853,8 @@ inp_read(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile)
}
if (newcard) {
if (inp_compat_mode == COMPATMODE_PS)
newcard = pspice_compat(newcard);
int line_number_inc = 1;
end->nextcard = newcard;
/* Renumber the lines */
@ -6302,3 +6305,12 @@ inp_meas_current(struct card *deck)
new_rep = repn;
}
}
static struct card *
pspice_compat(struct card *oldcard)
{
struct card *card, *newcard, *nextcard;
newcard = oldcard;
return newcard;
}