Commit Graph

2894 Commits

Author SHA1 Message Date
rlar 56618c91f6 doit, drop braces 2012-03-25 19:08:49 +02:00
rlar 7eb5e83b8d doit, tiny rewrite 2012-03-25 19:08:04 +02:00
rlar 90dc1da4d2 doit, return allows shortcuting else if 2012-03-25 19:07:47 +02:00
rlar a69ddd9ad0 doit, rewrite 2012-03-25 19:07:29 +02:00
rlar b29b3afee2 doit, comments 2012-03-25 19:07:25 +02:00
rlar f6d1f1fa73 nest, cleanup the loop, pronounce the `c', `lcc' pair 2012-03-25 19:07:22 +02:00
rlar 0be258a808 nest, initialize `lcc' with `last' instead of NULL to avoid special handling for empty bodies 2012-03-25 19:07:15 +02:00
rlar 679a8d34e8 nest, delay setting of `lcc' a bit for readability 2012-03-25 19:06:10 +02:00
rlar b8b1c9dc6a nest, rewrite 2012-03-25 19:05:34 +02:00
rlar c86d52aab6 nest, rewrite 2012-03-25 19:05:32 +02:00
rlar 54d743c87e next, identical with tail of the loop 2012-03-25 19:05:31 +02:00
rlar 9dc52933f8 nest, drop else {} due to break 2012-03-25 19:05:30 +02:00
rlar e41db66b6c nest, increment semantics of `nest' 2012-03-25 19:05:29 +02:00
rlar 4af931d9e4 nest, shrink scope of `nest' 2012-03-25 19:05:27 +02:00
rlar 74ec911f01 doit, drop unused `gotone' assignment 2012-03-25 19:05:25 +02:00
rlar 1be324ca38 doit, tiny rewrite 2012-03-25 19:04:49 +02:00
rlar c866517dfb doit, drop local `i' 2012-03-25 19:04:37 +02:00
rlar 107827af14 doit, shrink scope of `c' 2012-03-25 19:04:34 +02:00
rlar 091a83019a doit, shrink scope of `lcc', drop an unused `lcc' assignment at the scopes tail 2012-03-25 19:04:33 +02:00
rlar 8f73a4dd23 doit, shrink scope of `s' 2012-03-25 19:04:32 +02:00
rlar 0cee0467e2 doit, shrink scope of `t' 2012-03-25 19:04:31 +02:00
rlar 79ad78d28c doit, shrink scope of `i' 2012-03-25 19:04:29 +02:00
rlar 1ea5561a18 doit, shrink scope of `lc' and `last' 2012-03-25 19:04:15 +02:00
rlar a78251d5da doit, shrink scope of `ks' 2012-03-25 19:04:12 +02:00
rlar 8fd8611bc4 doit, shrink scope of `subname' and `scname' 2012-03-25 19:04:00 +02:00
rlar 63d3c28d60 doit, shrink scope of `savenext' 2012-03-25 19:03:56 +02:00
rlar 45f6b7b1dd devmodtranslate, mark a possible bug 2012-03-25 19:03:47 +02:00
rlar fa2212b305 devmodtranslate, drop braces 2012-03-25 19:03:44 +02:00
rlar d4b453698c devmodtranslate, shrink scope of variables 2012-03-25 19:03:39 +02:00
rlar ead1ef3736 devmodtranslate, drop `found' variable, use loop termination criterion instead
for(;criterion;)
     if(..)
       found=TRUE; break;
   if(found)
     ...

  ==>

   for(;criterion;)
     if(..)
       break;
   if(!criterion)
     ...
2012-03-25 19:03:30 +02:00
rlar 4d8c3bec4e devmodtranslate, use variable `found' to delay processing until loop termination 2012-03-25 18:58:10 +02:00
rlar da06afb895 bug fix, numnodes()
in response to the `ex-41.cir' test case
    distilled from a Dietmar Warning Bug report in
      "Subject: Re: subckt, param"

  translate() is called recursively and depends on
    `num of nodes' provided by numnodes().
  numnodes() depends on availability of `su_numargs'.
  But the processing allows non-processing of subckt instantiations
    in inner recursions (which will be processed later)
    which means `su_numargs' is not always available.
2012-03-25 18:54:10 +02:00
rlar a1ea1b3193 round to next nearest integer for the rise, fall and cross arguments of `measure'
Simon Guan reported
  Bug item #3509528, `Meas goes wrong when put in a while loop'

In a .control block a `let' variable was passed to the `measure' command.

The value of this variable would have been a plain integer,
  yet it was converted internally to an internal ascii representation
    with exponential representation  (203 ==> 2.03e2)
  and then processed by `ft_numparse()' where it was converted back to
    double floating point.
  Because the intermediate 2.03 has
    no exact representation in the space of double floating point numbers
    this conversion was lossy and resulted in a non-integer value.
  This non-integer was then truncated towards minus infinity in com_measure
    yielding an error of -1

This commit implements round to nearest in com_measure2
  to avoid the problem.

FIXME,
  the internal intermediate conversion of double floating point machine
    values to ascii representations must be dropped,
  or replaced with an exact/lossless ascii representation.
    (for example GNU printf/scanf %a or 64bit hexadecimal representation)
2012-03-25 11:08:48 +02:00
h_vogt b4516b08ca bug fix, iplot(): Buffer overflow
Thanks to Zsolt Makaró for the bug report in
  Buffer overflow detected - ID: 3510521
  http://sourceforge.net/tracker/?func=detail&aid=3510521&group_id=38962&atid=423915
2012-03-24 18:29:36 +01:00
h_vogt 0a2e031cb1 bug fix, inp_fix_subckt(): problem when parsing a .subckt line
this worked
  .subckt psub a b p2 = {p1*2-1} p1 = 1
but this failed
  .subckt psub a b p2 = { p1 * 2 - 1 }  p1 = 1

thanks to Ivan Riis Nielsen for the report in Message
  [Ngspice-devel] parsing problem (ngspice-24 tarball)
2012-03-24 18:29:36 +01:00
h_vogt 4b1abe0a18 tclspice.c: new functions to get start and final time of a transient simulation 2012-03-24 18:29:36 +01:00
h_vogt 48a08dc63a .gitignore: exclude /release* and /debug* directories 2012-03-17 17:00:46 +01:00
h_vogt 787a6a3581 inp_fix_subckt(): allow spaces in an expression which acts as a parameter 2012-03-17 16:56:30 +01:00
h_vogt f15765bf46 Visual Studio: console and GUI, 32 Bit and 64 Bit newly organized 2012-03-10 00:01:17 +01:00
dwarning 1938041e10 1. Correct the list of binable models. 2. Fix a problem with wrong MOS level entries. 2012-03-01 20:33:06 +01:00
rlar 9f017ea557 .gitignore files 2012-02-26 16:19:58 +01:00
h_vogt 80a039983e dummy functions 2012-02-19 16:38:33 +00:00
dwarning 70e9907415 Add reciprocal temperature behaviour for B sources 2012-02-19 12:55:54 +00:00
h_vogt 8f3f757813 command mrdump 2012-02-19 11:11:31 +00:00
h_vogt dffe4ed156 command mdump 2012-02-19 10:23:56 +00:00
dwarning 862f10dce3 Add temperature coefficients for B sources 2012-02-11 19:52:04 +00:00
dwarning d9561123f9 Add temperature coefficients for B sources 2012-02-11 19:45:25 +00:00
h_vogt 1a7fa85e3c reading incs, libs etc. 2012-02-11 13:14:34 +00:00
h_vogt fc7692a896 outheap removed 2012-02-11 12:50:44 +00:00
h_vogt 5d101f46f9 updates tcl for Windows 2012-02-11 11:59:12 +00:00