Make code a little more efficient
This commit is contained in:
parent
26404d985f
commit
7bf550f637
|
|
@ -5106,11 +5106,11 @@ static int inp_split_multi_param_lines(struct card *card, int line_num)
|
||||||
break;
|
break;
|
||||||
if (*end_param == '{')
|
if (*end_param == '{')
|
||||||
++expression_depth;
|
++expression_depth;
|
||||||
if (*end_param == '(')
|
else if (*end_param == '(')
|
||||||
++paren_depth;
|
++paren_depth;
|
||||||
if (*end_param == '}' && expression_depth > 0)
|
else if (*end_param == '}' && expression_depth > 0)
|
||||||
--expression_depth;
|
--expression_depth;
|
||||||
if (*end_param == ')' && paren_depth > 0)
|
else if (*end_param == ')' && paren_depth > 0)
|
||||||
--paren_depth;
|
--paren_depth;
|
||||||
end_param++;
|
end_param++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue