Shift all compatibility handlinmg from inpcom.c into its own source files

inpcompat.c and inpcompat.h
This commit is contained in:
Holger Vogt 2023-04-08 15:24:00 +02:00
parent c90268321a
commit 797795e7c0
5 changed files with 1898 additions and 1826 deletions

View File

@ -130,6 +130,8 @@ libfte_la_SOURCES = \
inp.h \
inpcom.c \
inpcom.h \
inpcompat.c \
inpcompat.h \
inpc_probe.c \
interp.c \
interp.h \

File diff suppressed because it is too large Load Diff

View File

@ -9,4 +9,8 @@
struct card *insert_new_line(struct card *card, char *line,
int linenum, int linenum_orig);
char *inp_pathresolve(const char *name);
extern char* inp_remove_ws(char* s);
extern char* search_plain_identifier(char* str, const char* identifier);
#endif

1868
src/frontend/inpcompat.c Normal file

File diff suppressed because it is too large Load Diff

20
src/frontend/inpcompat.h Normal file
View File

@ -0,0 +1,20 @@
/**********
Copyright 2023 The ngspice team. All rights reserved.
License: Three-clause BCD
Author: 2023 Holger Vogt
**********/
/*
For dealing with compatibility transformations
PSICE, LTSPICE and others
*/
extern void print_compat_mode(void);
extern void set_compat_mode(void);
extern void pspice_compat_a(struct card* oldcard);
extern void ltspice_compat_a(struct card* oldcard);
extern struct card* pspice_compat(struct card* newcard);
extern struct card* ltspice_compat(struct card* oldcard);