Holger Vogt
b0a790a463
proper size_t to int conversion
6 years ago
Holger Vogt
8ea8ddcc03
simplify the previous commit, single step warp if multibyte utf-8 character
6 years ago
Holger Vogt
f911758e4b
X11: re-enable writing text to a graph if libxft is used
6 years ago
Holger Vogt
445c6f2d32
fix a bug that occurs when xspice is not selected
missing function parameter has been introduced in previous commit
6 years ago
Holger Vogt
602baf68e6
spice2g6 allows to omit the poly(n) statement, if the
polynomial is one-dimensional (n==1).
For compatibility with the XSPIXE code, we have to add
poly(1) appropriately.
6 years ago
Holger Vogt
60dfe836f4
If ps is enabled, .dc TEMP -15 75 5 will have been
modified to .dc (TEMPER) -15 75 5.
So we repair it here with a preliminary fix.
6 years ago
Holger Vogt
ca27319213
no forcing lower-case letters for command 'cd'
6 years ago
Holger Vogt
a0389bb547
In PS compatibility mode:
In subcircuit .subckt and X lines with 'params:' statement
replace comma separator by space. Do nothing if comma is inside of {}.
6 years ago
Holger Vogt
26a4a32b8b
avoid some compiler warnings 'referencing a NULL pointer'
6 years ago
Holger Vogt
458411b2e1
more precise freeing the wordlist, depending on exit point
6 years ago
Holger Vogt
e3aad7849c
remove vceo= and icrating= from bjt model cards
6 years ago
Holger Vogt
23ceaabf83
fix a memory leak
Reported in bug report 504 by Ferdy
6 years ago
Holger Vogt
a04c909a23
Don't add copied scale vector as new vector, but as new scale vector,
thus preventing crash after pushing X11 'Hardcopy' twice or
pushing 'quit' after 'Hardcopy'.
Scale vector was deleted two times, then crashimg ngsoice.
6 years ago
Holger Vogt
c68940712d
prevent writing beyond end of buffer
6 years ago
Holger Vogt
ebb1e953fe
Streamline the compatibility flag generation
6 years ago
Holger Vogt
f03a32287f
If 'set ngbehavior=ki' in .spiceinit or flag 'kicad' on the plot line:
Add " around vector names containing character /
Numerical ivision in plot line then requires spaces around /
6 years ago
Holger Vogt
c112279555
new compatibility handling with struct compat newcompat:
simplify the compatibility handling, better readability
make it easily extendable
add new flag 'ki' for KiCad compatibility
6 years ago
Holger Vogt
0caeaccdd3
fix typo
6 years ago
caand
6907d17985
add missing get_sysmem() when no info available
6 years ago
Holger Vogt
a406af26d6
bug fix 'extern int sh_vecinit()', not void
See patch #96 , thanks to Balazs Kovacs
6 years ago
Holger Vogt
c8c58b9f5b
Print out the netlist sent to ngspice by caller via 'circbyline'
or ngSpice_Circ
6 years ago
Holger Vogt
71e65b75b0
Syntax check: If the first character in a netlist
or .control line is one of =[]?()&%$§\"!:, then ngspice
replaces it by '*' and issues a warning.
'set strict_errorhandling' will force ngspice existing.
6 years ago
Holger Vogt
fe28feae4e
Cut out part of each vector of the current tran plot,
from times cut-tstart to cut-tstop and copy these
into a new tran plot. A new scale vector 'time' will be
generated as well. Vectors that are shorter than the
new scale vector will not be copied.
6 years ago
Holger Vogt
71338c3271
replace 'noiseless' only if it is an unconnected token
6 years ago
Holger Vogt
ba1945d685
enable flags xdelta, ydelta for gnuplot command
6 years ago
Holger Vogt
2c0729e8de
Print also the bool value 'off'.
Do not abort ngspice when vector LIST cannot be printed,
just skip printing and continue.
6 years ago
Holger Vogt
8f4e512826
ust tmpstr instead of second strstr()
6 years ago
Holger Vogt
e6fdf5f7e2
Make PPerror message more verbose:
give hint to buggy line segment
6 years ago
Holger Vogt
064bd39a2f
Unify batch mode and control mode raw file output:
Voltage is always named as v(nodename)
6 years ago
Holger Vogt
527abee022
Do not print "Units" on a graph, if unknown type
or settype notype is given.
6 years ago
Holger Vogt
6b0104849e
Add statistics: load, subckt expansion, and parse times
6 years ago
Carsten Schoenert
5a0ed18907
Small fixup for misspelled words
6 years ago
holger
569bc228fd
If code completetion is deselected, don't add keywords or key commands.
To prevent a crash in shared ngspice
6 years ago
Holger Vogt
0cf6b89eb3
during removing the plot 'const', also delete the hash table
6 years ago
Holger Vogt
f83bbb0d0f
delete 'myvec' upon 'quit'
6 years ago
Holger Vogt
8be33bb361
clear all variables upon 'quit'
6 years ago
Holger Vogt
05f3d21c3e
reset control structures (commands saved) upon 'quit'
6 years ago
Holger Vogt
ba7be26b95
If a g table source contains %, [, nor ] in its name,
replace it by _ in the a instance generated during parsing.
6 years ago
Holger Vogt
8d64983659
const parameter added
6 years ago
Holger Vogt
05bf86caaa
safeguard against empty lines which may be sent to shared ngspice
6 years ago
Holger Vogt
bbe81ca8f8
shared ngspice may transmit netlists with empty lines,
guard against crashing
6 years ago
Holger Vogt
dd5d1f1868
new copyright notice added
6 years ago
Holger Vogt
70be7508ce
Prevent 'unused variable' compiler message
6 years ago
Holger Vogt
13c23fd71b
Prevent buf2 buffer overflow by limiting the the amount of bytes printed
6 years ago
Holger Vogt
e0f5181bee
Correct comment
6 years ago
Holger Vogt
8a1eff8e88
Add function 'remzerovec' to remove vectors of length 0
from current plot. Maybe of interest if you have option
savecurrents, write xx all, and ac generates length 0 vectors
6 years ago
Holger Vogt
3a00520071
Improve error message
6 years ago
Holger Vogt
cbab726d69
use memcpy instead of strncpy to copy an exact amount of characters
remove unused function header
6 years ago
Holger Vogt
5e37955dc5
prevent buffer overrun by using snprintf
6 years ago
Holger Vogt
8ea51cc2f3
If command 'source' fails, don't move on with the script
(and od nonsens simulations), but stop ngspice and await
detaching (shared ngspice), or wait for user input.
6 years ago