typo in spice.awk, fix check symbol storage before caching xctx->sym and xctx->symbols in load_sym_def(). Thanks to JL

This commit is contained in:
Stefan Schippers 2020-10-16 22:16:54 +02:00
parent 1967bbff00
commit 666f05c3d5
2 changed files with 6 additions and 4 deletions

View File

@ -1544,9 +1544,12 @@ int load_sym_def(const char *name, FILE *embed_fd)
const char *str;
char *skip_line;
const char *dash;
xSymbol * const symbol = xctx->sym;
int const symbols = xctx->symbols;
xSymbol * const symbol;
int const symbols;
check_symbol_storage();
symbol = xctx->sym;
symbols = xctx->symbols;
dbg(1, "l_s_d(): recursion_counter=%d, name=%s\n", recursion_counter, name);
recursion_counter++;
dbg(1, "l_s_d(): name=%s\n", name);
@ -1582,7 +1585,6 @@ int load_sym_def(const char *name, FILE *embed_fd)
}
lastt=0;
tt=NULL;
check_symbol_storage();
symbol[symbols].prop_ptr = NULL;
symbol[symbols].type = NULL;
symbol[symbols].templ = NULL;

View File

@ -212,7 +212,7 @@ function process( i, iprefix)
# .probe tran v( ?1 DL[3],DL[2],DL[1],DL[0] , ?1 WL[3],WL{2],WL[1],WL[0] )
if($1 ==".probe" && $4 ~/^\?-?0-9]+$/ && $7 ~/^\?-?[0-9]+$/ && NF==9) {
if($1 ==".probe" && $4 ~/^\?-?[0-9]+$/ && $7 ~/^\?-?[0-9]+$/ && NF==9) {
num1=split($5,name,",")
num2=split($8,name2,",")