~kicad/+git/ngspice-mirror-sourceforge:rewrite-subckt-1

Last commit made on 2012-03-25
Get this branch:
git clone -b rewrite-subckt-1 https://git.launchpad.net/~kicad/+git/ngspice-mirror-sourceforge
Members of KiCad can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
rewrite-subckt-1
Repository:
lp:~kicad/+git/ngspice-mirror-sourceforge

Recent commits

c47b827... by rlar <rlar>

code beautify

33352be... by rlar <rlar>

whitespace and untabify

ff9dcd6... by rlar <rlar>

modnames, drop modnames artifacts, EXACT

f2cc623... by rlar <rlar>

modnames, inp_subckt, modnames need not be static any longer, EXACT

  wl_free can cope with NULL argument.
  trailing modnames = NULL not neccessairy, nobody reads it.

0478f3d... by rlar <rlar>

modnames, doit, unreference modnames,

  modnames was restored on regular returns.

  it was not restored on error returns.
    consider this a bug.

  if we assume it was saved for error returns as well,
  then modnames need not be passed by reference,
    and the unreferenced variant need not be restored.

  we see now more clearly,
    that a wl_free of the locally prepended new elements
    to modnames should be freed on return.

d094ba9... by rlar <rlar>

modnames, translate(), pass modnames unreferenced, EXACT

   was only used by numnodes, and is not modified there

595e804... by rlar <rlar>

modnames, numnodes(), pass modnames unrefererenced, EXACT

  since the reference was readonly, was not modified

f707311... by rlar <rlar>

modnames, pass global `modnames' by reference, EXACT transformation

  lives in
    inp_subcktexpand() where it is used and passed to doit()

  doit()
    where it is (read only) used, and passed to doit() modtranslate() and translate()
    does a strance protect,

  translate()
    where it not used, but passed to numnodes()

  numnodes()
     where it is used read-only

  modtranslate()
    where it is used to insert at the front

f048ead... by rlar <rlar>

submod, remove useless usage of `submod' (submod === NULL), EXACT

536bf69... by rlar <rlar>

submod, drop renamed subname artifacts, EXACT