Holger Vogt
e2d53da967
Reduce wchar_t string length to minimum required
...
(to be NULL-terminated for CreateWindowW)
2021-04-24 20:11:37 +02:00
Holger Vogt
e68006d865
Revert "Reduce wchar_t string length to minimum required."
...
This reverts commit 57f8184c09 .
2021-04-24 20:07:21 +02:00
Holger Vogt
57f8184c09
Reduce wchar_t string length to minimum required.
2021-04-24 17:41:54 +02:00
Holger Vogt
3c32ae842d
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
2021-04-24 17:29:28 +02:00
Holger Vogt
c630d4a8e6
Upgrade due to recent ngspice enhancements
2021-04-24 17:25:21 +02:00
dwarning
fa8d7f4d2b
rm dead assignments
2021-04-23 10:53:08 +02:00
Holger Vogt
65562dd943
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
2021-04-21 10:14:19 +02:00
Holger Vogt
3b65edc34c
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.
2021-04-17 18:19:39 +02:00
Holger Vogt
6034c2bcd3
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.
2021-04-17 18:17:31 +02:00
dwarning
aac4df38f5
TEMPFORMAT has already leading / in defines.h
2021-04-17 10:14:50 +02:00
dwarning
fbc5bf7b55
rm dead assignemnts
2021-04-16 11:50:39 +02:00
dwarning
5999521e81
iter value never read - prevent compiler warning
2021-04-15 21:11:48 +02:00
dwarning
d664c858a6
diode cbv only needed for tracing - prevent compiler warning
2021-04-15 21:07:24 +02:00
dwarning
52130bd0f1
correct indentation
2021-04-15 21:01:15 +02:00
Holger Vogt
d16339b06f
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
2021-04-11 18:15:35 +02:00
dwarning
4895a4b5a9
Diode model with selfheating option
2021-04-11 11:28:57 +02:00
Holger Vogt
98219b58a2
Remove compiler warnings
2021-04-10 20:21:35 +02:00
Holger Vogt
271b01173c
Remove some compiler warnings
2021-04-10 20:11:47 +02:00
Holger Vogt
2c29277d4e
Allow tailing '\0'
...
Remove potentially user induced buffer overflow by replacing
sprintf by snprintf.
2021-04-10 18:16:22 +02:00
Holger Vogt
2354a67f96
remove compiler warning
2021-04-10 17:51:43 +02:00
Holger Vogt
656fed2f4a
correct function prototype
2021-04-10 17:48:24 +02:00
Holger Vogt
7e70e370e3
Remove compile error which may occur with specific settings
2021-04-10 17:37:38 +02:00
Holger Vogt
4bc3417c39
formatting (not complete)
2021-04-10 16:46:03 +02:00
Holger Vogt
63b467ab91
Report an error when trying to define ports
...
'v', 'vd', 'i', and 'id' as 'inout'
Parch 105 provided by Giles Atkinson
2021-04-10 16:33:53 +02:00
Holger Vogt
911e37ae26
Don't create cat2strings if on VS2019
2021-04-09 15:21:58 +02:00
Holger Vogt
e165e59a58
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.
2021-04-09 15:14:14 +02:00
Holger Vogt
64f6e24ed6
enable cshunt for MS Windows fftw and shared ngspice
2021-04-09 15:13:55 +02:00
Holger Vogt
254d9927d1
Adding capacitors, one per voltage node
2021-04-09 15:13:45 +02:00
Holger Vogt
00bc5b97a1
Prepare Cshunt: add a cpacitor to each voltage node
...
Function inppas4() will add the extra caps, to be done.
2021-04-09 15:13:38 +02:00
Holger Vogt
f7d8271e6c
Add some comments for inppas1,2,3
2021-04-09 15:13:32 +02:00
Holger Vogt
73fdba3f1c
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().
2021-04-09 12:19:30 +02:00
Holger Vogt
1f6b97cd7b
Restrict the limit for exp function (linear growth when exponent
...
is larger than 14, commit [93a76d]) to the PSPICE compatibility
mode.
2021-04-09 10:56:04 +02:00
Holger Vogt
83592c4564
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.
2021-04-08 16:34:41 +02:00
dwarning
8b0ce0eeff
Correct scaling for area and pj geometry scaled diode (level=3)
2021-04-08 16:34:28 +02:00
dwarning
fe2139d44e
Introduce element parameter handling for geometry scaled diode (level=3)
2021-04-08 16:34:19 +02:00
dwarning
5023f5c7c1
Correct parameter handling for geometry scaled diode (level=3)
2021-04-08 16:34:07 +02:00
dwarning
4772d7af5c
First attempt for geometry scaled diode (level=3)
2021-04-08 16:33:57 +02:00
Holger Vogt
39ab3fa4b2
Remove unused prototype
2021-04-03 10:53:27 +02:00
Holger Vogt
9c749ddc1a
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;
2021-03-28 23:01:16 +02:00
Holger Vogt
6d339a4444
Add missing references to svg.c
2021-03-28 12:14:33 +02:00
Holger Vogt
6f9f361063
linking with readline failed
...
after OS upgrade to Big Sur
Install readline from Homebrew
Edit configure flag with link to new readline:
--with-readline=/usr/local/opt
2021-03-22 15:48:05 +01:00
Holger Vogt
9aabe5019a
remove deprecated storage class
2021-03-21 14:18:50 +01:00
Holger Vogt
4d51a926b8
re-enable PostScript/SVG to file by pushbutton
...
on the ngspice plot window, avoid crash due to double freeing.
2021-03-17 16:16:57 +01:00
Holger Vogt
c46ded303f
remove memory leak
2021-03-17 16:15:21 +01:00
Holger Vogt
8f90a65cba
Plotting with feh in macOS failes with --magick-timeout,
...
so replace it by --conversion-timeout, which does not do
in Linux or Cygwin.
2021-03-17 12:11:01 +01:00
Holger Vogt
dcb421d438
Remove memory leaks in the SVG code
2021-03-16 20:54:06 +01:00
Holger Vogt
bbf9f6a1d1
Free tmalloced Cfg.strings[i]
2021-03-16 15:12:49 +01:00
Holger Vogt
844a3038fb
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.
2021-03-16 13:55:18 +01:00
Holger Vogt
4291b582c1
more examples
2021-03-16 11:04:26 +01:00
Holger Vogt
951a0af6ff
Add a second call to svg_intopts
2021-03-16 11:04:17 +01:00