dwarning
e14dc3aaa3
few style cleanings
5 years ago
Holger Vogt
109e33f127
Improve font selection for Win GUI plot window
Font Names from
https://docs.microsoft.com/en-us/typography/fonts/windows_10_font_list
without option or with Bold or Italic are supported, e.g.
setcs wfont="Cambria Bold Italic".
5 years ago
Holger Vogt
80e5f67466
Reduce wchar_t string length to minimum required
(to be NULL-terminated for CreateWindowW)
5 years ago
Holger Vogt
c9a19c7569
Fix for bug 547
Reduce length of wchar_t strings to the minimum required
for conversion
Check if Bold or Italic is given in the font name, set
corresponding variable
5 years ago
dwarning
45e397727b
rm dead assignments
5 years ago
Holger Vogt
d2f6ad239f
If the input file path contains ANSI-encoded special characters,
utf-8 conversion and thus file opening will fail.
This patch then in addition tries opening the file with standard fopen.
5 years ago
Holger Vogt
ba262eaa5f
Internal global variable Infile_Path is a file search path made
available for the code models. It is set when command 'source' is used.
This patch makes the first entry in var 'sourcepath' available to
the code models as well by setting Infile_Path, when 'sourcepath'
is set in .spiceinit.
5 years ago
dwarning
a08f120518
TEMPFORMAT has already leading / in defines.h
5 years ago
dwarning
64c407332d
rm dead assignemnts
5 years ago
dwarning
9b2f3cfd5e
iter value never read - prevent compiler warning
5 years ago
dwarning
4e86cfa352
diode cbv only needed for tracing - prevent compiler warning
5 years ago
dwarning
2b2e40793e
correct indentation
5 years ago
Holger Vogt
741cab390f
Prevent a crash when the number of models exceeds MODNUMBERS
Raise MODNUMBERS to 2048
https://github.com/kicad-spice-library/KiCad-Spice-Library/issues/16
5 years ago
Holger Vogt
66cbac3f4e
Fixes a bug introduced by commit [4895a4]
Re-enables R with .model like
.model R_NOISELESS RES (TCE=0 T_ABS=-273.15)
R77 1 0 R_NOISELESS 100
5 years ago
dwarning
b1bf7ea0ad
Diode model with selfheating option
5 years ago
Holger Vogt
48acb10929
Remove compiler warnings
5 years ago
Holger Vogt
e91ec306ba
Remove some compiler warnings
5 years ago
Holger Vogt
2536b78acb
Allow tailing '\0'
Remove potentially user induced buffer overflow by replacing
sprintf by snprintf.
5 years ago
Holger Vogt
053e8c5a04
remove compiler warning
5 years ago
Holger Vogt
d5fd9c8625
correct function prototype
5 years ago
Holger Vogt
45c171635a
Remove compile error which may occur with specific settings
5 years ago
Holger Vogt
19ddeb8fe6
formatting (not complete)
5 years ago
Holger Vogt
545d2f9177
Report an error when trying to define ports
'v', 'vd', 'i', and 'id' as 'inout'
Parch 105 provided by Giles Atkinson
5 years ago
Holger Vogt
bc74caca2f
Don't create cat2strings if on VS2019
5 years ago
Holger Vogt
d19c8e7f41
Efficiency: Remove setting the random seed to behind the options selection
Evaluate '.options cshunt=xx' earlier to allow the following:
Set the option by calling INPpas4() during parsing the circuit,
before .ic is set.
Ckt and Task cshunt are still set, but their values are available
only too late for INPpas4(), but may be used by command 'option'
(w/o parameters) for assessing the options and their values.
5 years ago
Holger Vogt
911b50fa8f
Adding capacitors, one per voltage node
5 years ago
Holger Vogt
f8357dad88
Prepare Cshunt: add a cpacitor to each voltage node
Function inppas4() will add the extra caps, to be done.
5 years ago
Holger Vogt
db5c6cd0ec
Add some comments for inppas1,2,3
5 years ago
Holger Vogt
d07fab904c
Speed enhancement while reading large PDKs:
Line concatenation used tprintf, which uses vsnprintf,
which is very inefficient in Linux, MINGW, but efficient
using MSVC. Thus for the others a function cat2strings() is
introduced, which uses memccpy().
5 years ago
Holger Vogt
e2cf397b6d
Restrict the limit for exp function (linear growth when exponent
is larger than 14, commit [93a76d]) to the PSPICE compatibility
mode.
5 years ago
Holger Vogt
8da2f3c16d
unify the evaluation of '.options scale=xx'
.option in a netlist will override 'options'
from spinit, .spiceinit or a script
'.options scalm=xx' yields a warning, it is not supported.
5 years ago
dwarning
8a04d049ab
Correct scaling for area and pj geometry scaled diode (level=3)
5 years ago
dwarning
a7cf70e615
Introduce element parameter handling for geometry scaled diode (level=3)
5 years ago
dwarning
56c8a24dd7
Correct parameter handling for geometry scaled diode (level=3)
5 years ago
dwarning
2a55f50192
First attempt for geometry scaled diode (level=3)
5 years ago
Holger Vogt
4bee26b8b9
Remove unused prototype
5 years ago
Holger Vogt
7064df7f3b
Define a preprocessor flag HAS_NG_BOOL
5 years ago
Holger Vogt
f6ba097b9c
Replace BOOL by NG_BOOL
Avoid clashes in environments where BOOL my be used differently.
NG_BOOL is typedefed to int, as ngspice uses int for boolean variables.
5 years ago
Holger Vogt
ded0f79c01
Avoid type 'bool', as ist is a built-in type in C++, not
equaling 'int' which ngspice is using.
Change bool to BOOL and ad a
typedef int BOOL;
5 years ago
Holger Vogt
5abd8057e6
remove deprecated storage class
5 years ago
Holger Vogt
9311674499
re-enable PostScript/SVG to file by pushbutton
on the ngspice plot window, avoid crash due to double freeing.
5 years ago
Holger Vogt
e1ae8c7495
remove memory leak
5 years ago
Holger Vogt
9f6d550837
Remove memory leaks in the SVG code
5 years ago
Holger Vogt
74a615d5af
Free tmalloced Cfg.strings[i]
5 years ago
Holger Vogt
02b4f06f2d
variables like color1 may override thie svg_intopts and svg_stropts.
Unsetting the variables will reset to the default.
Malloced colors and cfg.strings will be freed again.
Examples do show more of the options.
5 years ago
Holger Vogt
4303534f91
Shift colorID evaluation to a place after svg_stropts is read.
Remove unused.
5 years ago
Holger Vogt
6443135892
libtool versioning added for Linux shared ngspice.
And commented out immediately, because not compatible
to KiCad, which is linking to libngsice.so.0.0.0
5 years ago
Holger Vogt
1ba168ff30
clarify call to gnuplot on Linux/Cygwin
5 years ago
Holger Vogt
7b9d1fb74a
enable variable 'nolegend' for gnuplot
5 years ago
Holger Vogt
f61ea3aa96
if 'set nounits' is given, plotting of the units is suppressed
(they may be added manually to the y and x labels for SI conformity).
5 years ago