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
Jim Monte
b767df3a7e
Modified calculation to determine when memory is nearly exhausted. Also changed prototypes of memory reporting functions to match their definitions.
6 years ago
Holger Vogt
ec1d655289
In VDMOS device, if instance parameter tnodeout is set,
check for exactly five nodes
6 years ago
Holger Vogt
643b0edc26
enable local or global statistical values for B source
pre_set statlocal
(or set statlocal in spinit or .spiceinit) will be setting a
different random number for evaluating the value of fcn agauss
etc. in each B line, e.g. if this line appears in a subcircuit,
all expanded B lines will have different values. If not set,
each B line will use the same random number for agauss evaluation.
6 years ago
Holger Vogt
1353a5de77
allow again single letter vector names
6 years ago
dwarning
0362d63094
update vdmos with self-heating network and tj and tcase terminal
6 years ago
Holger Vogt
b699c7fad8
add the PSPICE vswitch S_ST variant,
which resolves to the classical ngspice sw switch
6 years ago
Holger Vogt
9d53780992
allow vec_get to verify vectors if their names are quoted by ""
6 years ago
Holger Vogt
987cc0aa86
another preliminary patch for macOS
6 years ago
Holger Vogt
7680be7312
stub to enable compilation on macOS,
memory info for macOS is currently not available.
6 years ago
Holger Vogt
b7012065ae
remove compiler warning by setting variables to 0
6 years ago
Holger Vogt
a9f83f3445
remove two small memory leaks
6 years ago
Holger Vogt
58901fe898
remove spurious error message
6 years ago
Holger Vogt
7ae76f0f51
update to the .measure and meas error messages:
remove crash uipon buggy inputs
add buggy example input file
unify fcn returns: 0 is OK, 1 is bad
Improve on error message for bad syntax
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
0c74820821
enable PSPICE compatible ~(~v(9)&v(8))
6 years ago
Holger Vogt
46adeb5eaa
plug memory leaks for the 'plot' command
6 years ago
Holger Vogt
573b270b6d
Give a better, modern name for this type of display
6 years ago
Holger Vogt
966b69090d
use only TMALLOC and TREALLOC for memory allocation
6 years ago
Holger Vogt
85e0a08cff
error message even if pNAME is not defined
6 years ago
Holger Vogt
09f829b863
Further improvement of error message im 'meas'
6 years ago
Holger Vogt
94d5ad312e
Improve error messages for the 'meas' command.
6 years ago
Jim Monte
2068c4fffb
Added -D/--define option to define a variable from the command line.
6 years ago
Jim Monte
372fe2a5e7
Opened binary files for writing using "wb" in all cases
6 years ago
Jim Monte
21f3eb74b8
Added basic help messages in addtion to reference to web pages
6 years ago
Jim Monte
de4788cfe5
Added conjugate function conj().
6 years ago
Jim Monte
a7946474fa
Additional freeing of device-dependent information for bug #419 and related bugs.
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
ce5410d33f
Fixed checking for redirection tokens
6 years ago
Jim Monte
cec6a8edd3
Fixed access of freed memory when reporting an error.
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
9d2c105942
Fixed bug with 255 card deck entered using circbyline
6 years ago
Jim Monte
e1ec2a21dd
Added error recovery when invalid foreach statement found
6 years ago
Jim Monte
690b7730fe
Fixed memory leak when empty word found.
6 years ago
Jim Monte
b120e7bd21
Fixed reporting of system information in Windows.
6 years ago
Jim Monte
271afc87cf
Made UI more consistent when comments are entered.
6 years ago
Jim Monte
2f3b9d0f2d
Used Win32 function PathIsRelativeA() to identify an absolute path instead of checking the string since the system function may handle more cases (network shares, etc.). Also reviewed formatting that was done on inpcom.c by a code beautifier in an earlier commit. Nearly all of it was an improvement, but a few cases were reverted back to closer to the original form. One particular instance was comments where a list of steps was given one per line.
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
92725594f3
Used the new capabilities of ft_numparse() to allow the creation of variables and list items of type CP_NUM
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
f7951af50b
Fixed locating vectors like V(node)
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
Holger Vogt
89411e2fe4
Fixed merge conflict. Also made readifile() static and removed an unnecessary string duplication there.
6 years ago
Jim Monte
873e4a8db0
Added no_histsubst option and related fixes
6 years ago
Jim Monte
4bd4a6e9be
Fixed usage of new dstring functions. Also added const to some parameters that did not change.
6 years ago
Jim Monte
75d233c40d
If the prompt variable was set to a value that is not a string, memory that has been freed would be used when displaying the command prompt. This could lead to strange prompts and possible access violations, although it may appear to work OK if the freed memory has not been modified. This issue is fixed. Some useless duplications of strings when defining variables are also removed.
6 years ago
Jim Monte
b677ae1611
The check for the scale vector was not comparing the name in a case-insensitive manner, so unlet Yes would delete the default yes scale vector, for example. That issue was corrected. The code was also made more modular and descriptive regarding the check for the scale vector. Also, the warning now prints the scale vector as it is stored to make clear that vector names are not case sensitive.
6 years ago
Jim Monte
b7d8c61cd9
Cleaned up code to locate a vector in a plot by name. The code was made more modular, and special names like allv are handled more efficiently
6 years ago