add dot commands .sndprint, .sndparam in inp.c

This commit is contained in:
Holger Vogt 2023-08-30 16:44:24 +02:00
parent b22f9ad862
commit ece3a999ba
2 changed files with 4 additions and 0 deletions

View File

@ -825,6 +825,8 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
eq(s, ".plot") ||
eq(s, ".print") ||
/* eq(s, ".save") || add .save only after subcircuit expansion */
eq(s, ".sndprint") ||
eq(s, ".sndparam") ||
eq(s, ".op") ||
ciprefix(".meas", s) ||
eq(s, ".tf")) {

View File

@ -136,6 +136,8 @@ inp_nutsource(FILE *fp, bool comfile, char *filename)
if (eq(s, ".width") || ciprefix(".four", s) ||
eq(s, ".plot") ||
eq(s, ".print") ||
eq(s, ".sndprint") ||
eq(s, ".sndparam") ||
eq(s, ".save"))
{
wl_append_word(&wl, &end, copy(dd->line));