From 7fc68c0c0708db5d89d8afb4166352b941b3546e Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 23 Jul 2025 16:51:55 +0200 Subject: [PATCH] Adding .param SWSOA=1 right after the .lib entry during reading in the libraries. --- src/frontend/inpcom.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index e31118e76..a890d1cd9 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -3966,8 +3966,12 @@ static void expand_section_references(struct card *c, const char *dir_name) fprintf(stdout, "\nLibrary\n%s\nsaved to %s\n", p->line + 9, filename); tfree(filename); } - else if (ciprefix(".lib", c->line)) + else if (ciprefix(".lib", c->line)) { + /* add SOA check info direcly after inserting the library */ + if (cp_getvar("soacheck", CP_BOOL, NULL, 0)) + insert_new_line(c, copy(".param SWSOA=1"), c->linenum + 1, 0, "internal"); c = expand_section_ref(c, dir_name); + } } }