dwarning
31a054f244
prevent few gcc warnings
6 years ago
Holger Vogt
2f1d3df8c7
add a Spectre compatibility mode
6 years ago
dwarning
689d561c9e
unify temperature limit routine for usage in self-heating model
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
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
6b0104849e
Add statistics: load, subckt expansion, and parse times
6 years ago
Holger Vogt
18c532e74b
improve comments
6 years ago
Holger Vogt
2b4394e34b
add wincolornames.h
6 years ago
Holger Vogt
a32da32885
set parentheses for initializing struct
6 years ago
Jim Monte
381d4ec43d
#includes modified
6 years ago
Holger Vogt
fdbcdb5b7d
apply const qualifier appropriately
6 years ago
Holger Vogt
bbb0007466
add function EVTswitch_plot() to switch the event data
according tothe (analog) plot. Called from plot_setcur()
in vetors.c, when command 'setplot xxx' is given.
6 years ago
Holger Vogt
d72b4c415f
get the plot name into the event job
6 years ago
Holger Vogt
93a76d8e21
add a limit exp(arg) to the exp function. If arg is larger
than 14 (arbitrarily selected), continue with linear response.
6 years ago
Holger Vogt
9edc436ef7
remove SIGINT handling which was not functional
add SIGSEGV handler which may be excluded by
set nosighandling
6 years ago
Holger Vogt
ded0092ad6
If ngSpice_Command(NULL) is sent to shared ngspice,
the internal control structure memory is freed.
6 years ago
Holger Vogt
ba81e21197
rcheckn: rcheck plus freeing allocated memory
6 years ago
Holger Vogt
7a7f717574
make flag 'nolegend' localfor each plot
6 years ago
Holger Vogt
1398ee7aa0
set the proper preprocessor flag __MINGW32__
6 years ago
Holger Vogt
2f23c58585
plug a memory leak (pll-xspice.cir)
6 years ago
Holger Vogt
e53632c368
When plotting arrays of curves, plot lines only in the direction
of (in absolute terms) growing x values.
Example: MOS output characteristics.
In the rare case of plotting versus varying x directions
(e.g. example memristor.sp), one has to add the flag
'retraceplot' to the plot command.
6 years ago
Holger Vogt
4ddcff55e7
add const declaration to newfopen
6 years ago
Holger Vogt
7f085144a9
remove all the remains of quote() and strip() that had been
used to modify the eigths bit of a character or string.
The functions had been switched off some time ago.
We now need all bits of a char for extended ascii or utf8
6 years ago
Vogt
728ddae41e
Set the color tables and linewidths personal for each graph,
added to strucht graph
Use only these data for plotting.
If zooming a plot windows, set as an extra parameter the graph id
of the 'mother graph'. Copy its color and line data to the new graph.
This is done by an extra parameter sgraphid to the internal plot
command that is issued in fcn PlotWindowProc().
Thus zooming will keep the background, text/line and graph colors.
Function setcolor() will always look into the colorarray of the
current graph.
6 years ago
Holger Vogt
fed7ef378f
add variable ticchar, allow an arbitrary character as ticmark
6 years ago
Holger Vogt
6094769fda
Restore original 'green', slight update on
auto color selection vs. background
6 years ago
Holger Vogt
54778527c4
list of colors used
6 years ago
Holger Vogt
8751092812
Enable separate linewidths for grids and graphs.
New variable gridwidth overrides xbrushwidth for graphs.
Fcn DevDrawLine() with boolean flag if grid is plotted.
Postscript, Gnuplot and X11 not (yet) supported.
9 years ago
h_vogt
697facdc30
#define fopen newfopen
and header for MINGW and MS VS
9 years ago
dwarning
4f75d56011
no wrapper cp_globmatch needed
6 years ago
Jim Monte
a53cd3a3e9
fixed path created by ngdirname in Windows. Also added const to parameters whose arguments do not change and fixed some potential buffer overruns.
6 years ago
Jim Monte
d254b6c97e
Gave structure defining Mif_Complex_t a name so that it could be forward referenced.
6 years ago
Jim Monte
0c741bbde2
Rework of let command. Added support for slices as described in feature #69 and fixed several crashes and issues described in bugs #443 , #444 , #446 , #447 , and #448 .
6 years ago
dwarning
7d17b8f082
vdmos have no Cgb
6 years ago
Holger Vogt
e9603dcdeb
enable inp_dodeck() to return an error state,
if error, inp_spsource() will return error as well
6 years ago
Holger Vogt
f9307d0beb
enable returning inp_spsource() with an error code
6 years ago
Holger Vogt
966b69090d
use only TMALLOC and TREALLOC for memory allocation
6 years ago
Jim Monte
4b145ddf5e
Added #include <stdio.h> to define FILE.
6 years ago
Jim Monte
2068c4fffb
Added -D/--define option to define a variable from the command line.
6 years ago
Jim Monte
de4788cfe5
Added conjugate function conj().
6 years ago
Jim Monte
0cf53a34b2
Fixed resolution of ~ to home directory. (Bug #405 ) Also fixed potential buffer overruns in glob expansion
6 years ago
Jim Monte
8141a634d7
Fixed several issues related to plotting and vector lifetimes and made ownership of vectors clearer. The issues in bugs 419, 423, 425, and 426 were related and were addressed here.
6 years ago
Jim Monte
57ffe1769f
Fixed "phantom vector" issue with plots and crash when plots are resized. See bugs #419 and #423 for details. Also several parameters were changed from char * to const char * in the plotting functions.
6 years ago
Jim Monte
2df00ad8c9
Cleaned up defintions of macro constants
6 years ago
Jim Monte
70600258bb
Made checking for single-character words faster. The testing now also uses less memory and works for 8-bit characters, which would have previously caused buffer overruns. It is also more modular and has additional documentation.
6 years ago
Jim Monte
ad970ae4e7
Made cp_enqvar() mode modular by adding a separate function to handle the case of a vector. Lists are more efficiently handled by moving common comparisons out of the loop over elements. The first argument of cp_enqvar() is changed from char * to const char * since the name of the variable being found is not altered by the function.
6 years ago
Jim Monte
72801b1ab1
Fixed buffer resizing, made string utilities more modular, and added several new utilities, some which do not require a null termination, potentially avoiding the need to copy a string. Also some substring utilities using the Rabin-Karp algorithm were added.
6 years ago
Jim Monte
81fa829b7d
Fixed potential infinite loop (until memory is exhausted) and added several utility functions for processing strings.
6 years ago
Jim Monte
068df274bf
Made ft_numparse() thread-safe (no internal static variables) and prepared to support ngspice variable type CP_NUM.
6 years ago
Jim Monte
873e4a8db0
Added no_histsubst option and related fixes
6 years ago