Transform nested braces {{}} into {()} also in .param statements
(See TI PSPICE model for LMR33630).
This commit is contained in:
parent
2f5b869979
commit
621918f289
|
|
@ -377,7 +377,7 @@ static bool del_models(struct vsmodels *vsmodel)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for double '{', replace the inner '{', '}' by '(', ')'
|
/* Check for double '{', replace the inner '{', '}' by '(', ')'
|
||||||
in .subckt or .model (which both may stem from external sources) */
|
in .subckt, .model, or .param (which all three may stem from external sources) */
|
||||||
static void rem_double_braces(struct card* newcard)
|
static void rem_double_braces(struct card* newcard)
|
||||||
{
|
{
|
||||||
struct card* card;
|
struct card* card;
|
||||||
|
|
@ -389,7 +389,7 @@ static void rem_double_braces(struct card* newcard)
|
||||||
slevel++;
|
slevel++;
|
||||||
else if (ciprefix(".ends", cut_line))
|
else if (ciprefix(".ends", cut_line))
|
||||||
slevel--;
|
slevel--;
|
||||||
if (ciprefix(".model", cut_line) || slevel > 0) {
|
if (ciprefix(".model", cut_line) || slevel > 0 || ciprefix(".param", cut_line)) {
|
||||||
cut_line = strchr(cut_line, '{');
|
cut_line = strchr(cut_line, '{');
|
||||||
if (cut_line) {
|
if (cut_line) {
|
||||||
int level = 1;
|
int level = 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue