5398 Commits (690b7730fe16c1ec66187ca0e49ec9fc9bd2ca3a)

Author SHA1 Message Date
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 2df00ad8c9 Cleaned up defintions of macro constants 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 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 f7951af50b Fixed locating vectors like V(node) 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
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
Jim Monte c7b95587de Fixed compiler warnings regarding type of argument passed 6 years ago
Jim Monte c368f32039 Added a macro R_MIN to define the minimum resistance value aS 0.01 and replaced the numeric value with the macro in the sourc code. 6 years ago
Jim Monte 89efe5aeae Dynamic string (dstring) rework 6 years ago
Holger Vogt 9452121954 Remove memory leaks in cmpp. 6 years ago
Holger Vogt 29b2799c22 plug a memory leak by CALLBACK, 6 years ago
Holger Vogt e89a92f944 prevent referencing a NULL pointer 6 years ago
Holger Vogt 707936efe3 enable setting a variable from an input file 6 years ago
Holger Vogt 05f02f3662 On Linux: allow calling gnuplot without invoking a terminal. 6 years ago
Holger Vogt 9238c0f9d4 prevent crash if 0 length vector is assessed 6 years ago
Holger Vogt ac65968595 allow 'dc TEMP 10 20 1' as well as 'dc temp 10 20 1' 6 years ago
Holger Vogt ee5f4cfc29 Replace B source pwl by XSPICE PWL Controlled Source 6 years ago
Holger Vogt b76fbf99fe Replace B source pwl by XSPICE PWL Controlled Source 6 years ago
Holger Vogt 917ea99758 enable system info for Windows 10, 6 years ago
Holger Vogt 6598225ec0 Replace deprecated GetVersionExA by version helper functions 6 years ago
Holger Vogt de9dfad0c9 remove VS 'assignment within conditional expression' warning 6 years ago
Holger Vogt 13a6e042f6 remove 'unreachable code' warning 6 years ago
Holger Vogt dc1ee5f11f remove 'potentially uninitialized' warning 6 years ago
Holger Vogt ceea40e012 Revert "enable compiling with readline for macOS" 7 years ago
Holger Vogt 71917744a8 remove superfluous double parentheses 7 years ago
Holger Vogt 7983b0d16a macOS: Do not use deprecated finite, but isfinite 7 years ago
Holger Vogt fa58223204 update for Linux 7 years ago
Holger Vogt 5542729694 fix for macOS 7 years ago
Holger Vogt 67f6fda216 Complete redesign of memory monitoring in resource.c. 7 years ago
Holger Vogt 22b111d9c0 tabs to spaces 7 years ago
Holger Vogt 6cd2e245c4 Add resource info on memory used and available for macOS 7 years ago
Holger Vogt 42e99ec66c safeguard against crash if instance lines are incomplete 7 years ago
Holger Vogt 33985ae1e5 Make DEVNUM robust against double initialization. 7 years ago
Holger Vogt 2f396187fa Better indentation of message 7 years ago
Holger Vogt 0575481206 Better info in case of error 7 years ago
Holger Vogt eb667118cf If there are no controls, just skip creating the controls thread. 7 years ago
Holger Vogt a4402f1da7 prevent potential false reads if 'controlswait' is set. 7 years ago
Holger Vogt 03c5870034 in ps compatibility mode: translate t_measured to tnom 7 years ago