Commit Graph

4735 Commits

Author SHA1 Message Date
rlar f84d2d4e44 misc/wlist.c, minor cleanup 2016-03-22 11:22:53 +01:00
rlar 273be42cfd improve `ABORT' macro 2016-03-21 21:22:26 +01:00
rlar 6fe937f931 drop unused `SWAPINT' macro 2016-03-21 21:22:23 +01:00
rlar 6342bec8ec everywhere, drop `MALLOC()' and `REALLOC()' 2016-03-21 21:22:15 +01:00
rlar 4c1c95e20f everywhere, use `TMALLOC()' instead of `alloc()' 2016-03-21 21:22:07 +01:00
h_vogt 7d8e287fa3 enable backquote substitution for Visual Studio console apps 2016-03-09 20:24:37 +01:00
h_vogt 25264b3980 memory.h: hrealloc not used anywhere 2016-03-09 20:24:37 +01:00
rlar d0897fd0c4 src/spicelib/parser/inpptree.c, bug fix, B expression of kind `max(0,expr)'
identified and reported by Marcel Hendrix,
expressions of this kind could trigger a segmentation violation.

PTdifferentiate() roughly evaluates to
  ternary_fcn(ge0(0-expr), 0, PTdifferentate(expr))
and mkb() optimizes
  0 - expr --> unary_minus(expr)

IFeval() invokes PTeval() for the derivative too,
PTeval() looks at the incorrect tree->funcnum
  and tries to PTeval for a second argument which is not there,
     (unary_minus does not have a second argument)
  causing a segmentation fault.
2016-03-09 20:24:37 +01:00
rlar c0eff98522 tests/regression/parser/bxpressn-1.cir, check some B expression capabilities 2016-03-09 20:24:36 +01:00
rlar 0932120a7f special cases of the char variants of the <ctype.h> family 2016-03-09 20:24:36 +01:00
rlar 726d0be34c use char variants of the <ctype.h> toxxxx() family 2016-03-09 20:24:36 +01:00
rlar 71a7c3459b use char variants of the <ctype.h> isxxxx() family 2016-03-09 20:24:36 +01:00
rlar d0c5a495ca ngspice.h, cm.h, cmpp.h, introduce char variants of the <ctype.h> family 2016-03-09 20:24:36 +01:00
rlar 07aba2e2ae frontend/variable.c, used `isalnum()' instead of homegrown `isalphanum()' 2016-03-09 20:24:36 +01:00
rlar 7a51ead0a5 frontend/inpcom.c, char argument for `identifier_char()' 2016-03-09 20:24:36 +01:00
rlar ea0cd17974 numparam/xpressn.c, fix a warning 2016-03-09 20:24:36 +01:00
rlar 1a257cd55a frontend/breakp.c, cleanup `dbfree1()' and `dbfree()' 2016-03-09 18:23:23 +01:00
rlar 8ce99a3c66 plotting/graf.c, bug fix, dbfree1() is wanted instead of dbfree() 2016-03-09 18:23:22 +01:00
mhx d97e12b1ab frontend/breakp.c, avoid segfault on/after "delete all" 2016-03-09 18:23:21 +01:00
rlar 6d356f439d autogen.sh, src/Makefile.am, fix a build problem
in autogen.sh:
  libtoolize generates m4/*.m4 files
  autoheader generates config.h.in
    but only when needed

Thus a second autogen.sh invocation generated new .m4 files
  but left config.h.in untouched with old timestamp

The makefiles did recognice this situation and tried to regenerate
  config.h.in and config.h
But the subdir src/include was not the first one in src/Makefile.am
  and thus this update did occure too late,
  causing further rebuilds in the next make invocation.

Avoid this with --force arguments to the autotools,
  and put src/include into the first position.
2016-03-09 18:23:20 +01:00
rlar d59b74471b xspice/icm, fix some warnings 2016-03-09 18:23:18 +01:00
h_vogt 72d7bb9c8a introduce visualc/{*install*.bat,*.sln} and update howto file 2016-02-07 17:45:43 +01:00
h_vogt c022d8f419 introduce visualc/xspice 2016-02-07 17:45:43 +01:00
h_vogt 51bc944def xspice/cmpp, compatibility with MS Visual Studio 2016-02-07 17:45:43 +01:00
h_vogt caee377fd3 visualc/, put flex/bison output files into tmp-bison/ 2016-02-07 17:45:42 +01:00
h_vogt a0106d3590 visualc/, move *.c, *.h into src/ 2016-02-07 17:45:42 +01:00
h_vogt 9e9240aae3 visualc/include/ngspice/config.h, target directories for debug versions 2016-02-07 17:45:42 +01:00
h_vogt 866bc36e3a visualc/*.vcxproj, <LargeAddressAware>true
allow access to
 4 GB memory of 32 bit ngspice on 64 bit Windows,
 8 TB for 64 bit ngspice.
2016-02-07 17:45:42 +01:00
h_vogt 7eba7a7a14 compile_min.sh, add appropriate flags -O2, -s for release build
and drop
  '-fno-omit-frame-pointer'. This entry compensates for a compiler bug of actual mingw gcc 4.6.1.

which was introduced in commit

commit 5b1be4d32d
Author: h_vogt <h_vogt>
Date:   Sat Jan 28 09:59:27 2012 +0000

    prepare for release 24
2016-02-07 17:45:23 +01:00
h_vogt fc83bd099a miscoms.c, mscvars.c, spinit.in, variable 'askquit' instead of 'noaskquit' 2016-02-07 17:37:42 +01:00
h_vogt db0849d076 terminal.c, miscvars.c, variable 'moremode' instead of 'nomoremode', new default
the `more' pager is now disabled by default
2016-02-07 17:37:34 +01:00
h_vogt eef5a058d2 inp.c, disable command `edit' unless `interactive' has been set 2016-02-07 17:36:54 +01:00
h_vogt 888bcce829 spicenum.c, new variable `interactive'
when set enables interactive numparam error handling
2016-02-07 17:34:26 +01:00
h_vogt e6034b0e95 postcoms.c, change command `setplot'
`setplot'
  print a list of plots available
`setplot <plotname>'
  make <plotname> the current plot
`setplot new'
  create a new plot
2016-02-07 17:34:15 +01:00
h_vogt 5527325a67 runcoms.c, change command `setcirc'
`setcirc'
  print a list of circuits loaded
`setcirc <n>'
  switch to circuit number <n>
2016-02-07 17:34:08 +01:00
h_vogt a162ecec9f src/xspice/evt/evtprint.c, bug fix, avoid segfault
print an error message if no circuit has been loaded
2016-02-07 17:33:54 +01:00
h_vogt 9531318d8f src/frontend/commands.c, cleanup 2016-02-07 17:33:45 +01:00
rlar d07b76610b visualc/.gitignore, src/spinit.in, cleanup 2016-02-07 17:33:39 +01:00
h_vogt 85bfaaabef src/xspice/examples/io_types.deck, bug fix, instance name
instance `again' occured twice
2016-02-07 17:33:25 +01:00
rlar da5f86c50b spicelib/analysis/transetp.c, fix typo, `TST0P' -> `TSTOP' 2016-01-22 22:41:32 +01:00
h_vogt 356a262f7f cktdefs.h, some parameter descriptions added 2016-01-22 22:41:30 +01:00
h_vogt 4b1f264704 visualc/include/ngspice/config.h, scalbn() and erfc() are available in VS 2015 2016-01-07 17:38:13 +01:00
rlar 885e7df8a5 xspice, introduce cm_message_printf() 2016-01-07 16:55:09 +01:00
h_vogt 137f8e9641 com_option.c, mif_inp2.c: remove memory leaks 2016-01-07 16:54:59 +01:00
Krzysztof Blaszkowski 03b47b3e34 src/frontend/outif.c, plotAddRealValue() etc, rallocate more coarsely
reallocate in chunks, instead of once per time step.
2016-01-07 09:05:00 +01:00
rlar 9d32a0a5a9 simplify complex assignments 2015-12-29 18:15:06 +01:00
Krzysztof Blaszkowski 2c63d0f6d3 frontend/outitf.c, #4/4, reorder, first do the work, then print 2015-12-29 14:58:19 +01:00
Krzysztof Blaszkowski e952014016 frontend/outitf.c, #3/4, abstraction, `&run->data[i]' --> `d' 2015-12-29 14:58:04 +01:00
Krzysztof Blaszkowski 7720ae936f frontend/outitf.c, #2/4, avoid repeated access to `run->numData' 2015-12-29 14:57:51 +01:00
Krzysztof Blaszkowski 6fa60faf7e frontend/outitf.c, #1/4, abstraction, introduce `OUTpD_memory()' 2015-12-29 14:57:42 +01:00