Browse Source

keep dico structure

pre-master-46
h_vogt 17 years ago
parent
commit
12bf33431c
  1. 8
      ChangeLog
  2. 6
      src/frontend/numparam/spicenum.c
  3. 1
      src/frontend/numparam/xpressn.c

8
ChangeLog

@ -1,3 +1,11 @@
2009-04-12 Holger Vogt
* spicenum.c, xpressn.c: dico and inst_dico not removed in nupa_done
because they are needed in .measure
* lexical.c: size of arrays doubled in cp_lexer() to avoid "line too long"
message
* runcoms.c: enter do_measure() only if ft_curckt->ci_last_an has a value
(bug no. 2751855)
2009-04-10 Holger Vogt
* spicenum.c: memory leak removed

6
src/frontend/numparam/spicenum.c

@ -454,7 +454,10 @@ nupa_done (void)
}
nerrors = dico->errcount;
dictsize = donedico (dico);
/* We cannot remove dico here because numparam is usedby
the .measure statement, which is invoked only after the
simulation has finished */
/*
for (i = dynmaxline ; i >= 0; i--) {
dispose ((void *) dico->dynrefptr[i]);
}
@ -466,6 +469,7 @@ nupa_done (void)
dispose ((void *) inst_dico->dyndat);
dispose ((void *) inst_dico);
inst_dico = NULL;
*/
if (nerrors)
{
/* debug: ask if spice run really wanted */

1
src/frontend/numparam/xpressn.c

@ -230,7 +230,6 @@ int
donedico (tdico * dico)
{
int sze = dico->nbd;
if (dico->dyndat) tfree(dico->dyndat);
return sze;
}

Loading…
Cancel
Save