Commit Graph

6391 Commits

Author SHA1 Message Date
Jim Monte 194e6d02e9 [PATCH #60] Fixed build warnings about inconsistencies in the output
location for cmpp. The destination was not changed (due to dependencies of
 batch files on the location) but $(ProjectDir) was used to make the path
 absolute, which simplifies verifying the correct location.
2019-06-01 17:49:49 +02:00
Jim Monte 09021c22ce [PATCH #59] Made INP*Cat() functions more modular and efficient. Also
eliminated the possibility of a buffer overrun in INPstrCat() due to an error
 in the calling funciton.
2019-06-01 17:40:36 +02:00
Jim Monte cb14fc0fbb [PATCH #58] Made annotations of WinMain() agree with its prototype 2019-06-01 17:22:08 +02:00
Jim Monte 0303b2da63 [PATCH #57] Fixed several issues with win_x_fread() 2019-06-01 17:06:07 +02:00
Holger Vogt 84530eee37 [PATCH #55-2] Prevent reading from a NULL pointer 2019-05-29 23:02:18 +02:00
Jim Monte 3d77a32be1 [PATCH #55-1] Fixed some compiler warnings added by Visual Studio 2019 2019-05-29 22:57:40 +02:00
Jim Monte 8a6c9a29e5 [PATCH #54] Fixed bug with processing of user input when the user input
size equals or exceeds the allowed amount. A 1-byte buffer overrun resulted
 in incorrect processing of the buffer returned from the window supplying user
 input which lead to an infinite loop.
2019-05-29 22:38:02 +02:00
Jim Monte c76bdee606 [PATCH #53] Removed useless zeroing of a copy of a variable (twice) when
the original variable should be zeroed. Made cp_free_control static because
 it was only used in control.c and it was not defined in any header file.
 Added comments
2019-05-29 22:36:53 +02:00
Jim Monte a4c3f7b608 [PATCH #52] General cleanup of word list processing, such as adding
comments and const. Also added a new function wl_from_string() to convert a
 single word into a word list. This function can be useful when calling a
 function taking a single-word word list.
2019-05-29 22:17:53 +02:00
Jim Monte 24e8e7d33b [PATCH #50] Ensured no buffer overrun for long namess and improved
efficiency of compare. Also made more modular.
2019-05-27 22:30:10 +02:00
Jim Monte 61d50f7177 [PATCH #49] Ensured no buffer overrun for long script strings and
improved efficiency of building string
2019-05-27 21:59:52 +02:00
Jim Monte 9a7459b8e0 [PATCH #48] Fixed infinite loop and variation from documented behavior of
atodims()
2019-05-27 21:06:34 +02:00
Jim Monte 65dcb0b4eb [PATCH #51] Added scrolling to input window 2019-05-26 19:10:29 +02:00
Holger Vogt b3605fba04 unify the numerical constants 2019-05-26 18:33:28 +02:00
Holger Vogt 018025df1e [PATCH 47] Refactored ft_getnames() and used the new function in
com_let().
2019-05-26 18:32:55 +02:00
Holger Vogt 016c558d77 Try to detect, if one wants to plot vectors with
different scale vectors into the same graph.
Issue a warning and skip the plot command.
2019-05-01 18:49:34 +02:00
Holger Vogt f1c454c0be Update to patch #33, stdlib.h required on Linux for size_t 2019-05-01 18:44:21 +02:00
Jim Monte f6c720c288 [PATCH #46] Fixed uninitialized buffer in case of 0 dim for dimstring()
and prevented the compilation of unused functions. Also a comment was
 corrected.
2019-05-01 16:56:22 +02:00
Jim Monte 282b53d51e [PATCH #45] Fixed uninitialized buffer in case of 0 dim and improved
efficiency in other cases.
2019-05-01 16:46:50 +02:00
Jim Monte 6b6281d888 [PATCH] Changed prototypes of some functions having parameters that
should not be changed to const and added assorted comments. Also two very
 minor efficiency improvements.
2019-05-01 16:35:59 +02:00
Jim Monte d524105d26 [PATCH #43] Added patterns ignore Visual Studio user options files, Vim
swap files, and patch files.
2019-05-01 16:25:01 +02:00
Jim Monte f015789454 [PATCH #41] Made constants agree across ngspice simulator. File const.h
is the source of the values with all other files referencing it.
2019-05-01 16:20:06 +02:00
Jim Monte c8c56f7fb8 [PATCH #40] Fixed memory leaks under 3 different conditions when the
deftype command is used. Added more argument validation. Enhanced error
 reporting. Implemented facility to free allocations associated with
 user-defined types
2019-05-01 13:17:20 +02:00
Jim Monte 7d611252ac [PATCH #38] Fixed crash when composing a complex vector from a mix of
real and complex values. Also eliminated unnecessary test for element being
 real when composed vector is real.
2019-05-01 12:43:51 +02:00
Jim Monte 7887be31ff [PATCH #37] Fixed crash when composing a complex scalar 2019-05-01 11:57:16 +02:00
Jim Monte 97854d6ba1 [PATCH 36] Initial creation of a clang-format style file 2019-05-01 11:48:09 +02:00
Holger Vogt d9800a79f2 [PATCH 35] Fixed values of physical constants such as the speed of light 2019-05-01 11:42:55 +02:00
Jim Monte 60700890d4 [PATCH 6/6] Fixed Visual Studio C4456 compiler warnings related to
variable name hiding another variable and reduced scopes of arg and sarg
 variables in the process
2019-05-01 11:34:13 +02:00
Jim Monte 92f512894f [PATCH 5/6] Fixed formatting for consistent nesting level indentation 2019-05-01 11:28:27 +02:00
Jim Monte fdc1e32164 [PATCH 4/6] Fixed Visual Studio C4456 compiler warning related to
variable name hiding another variable
2019-05-01 11:21:16 +02:00
Jim Monte caa932eb1f [PATCH 3/6] Fixed Visual Studio C4389 compiler warnings related to
signed/unsigned mismatch
2019-05-01 11:10:21 +02:00
Jim Monte c6d6aa60fa Fixed Visual Studio C4334 compiler warnings related to
32-bit vs 64-bit shifts
2019-05-01 10:57:26 +02:00
dwarning 6098a7f62b update to hicum version 2.40 2019-04-24 10:11:53 +02:00
Holger Vogt 00b9fd1ced remove the token mfg=nfgname from each .model statement 2019-04-14 16:29:59 +02:00
Holger Vogt 32d6519f09 add a new function gettok_model to consider {...} expressions
in VDMOS .model statements
2019-04-13 12:42:55 +02:00
Holger Vogt 263ea850ad correct the temperature replacement in ps
TEMPER is in degrees °C
2019-04-13 12:41:15 +02:00
Kevin Zheng 5b28b4a8a8 Fix a build error on FreeBSD 12, bison 3.3.2, automake 1.16.1 and BSD make
by dropping the rules to run bison and use automake's built-in rules instead
2019-04-09 14:36:11 +02:00
Holger Vogt 0149e6af3a If a in command set name="value" value is encapsulated in double quotes, it is always treated as a string variable. 2019-03-31 14:41:14 +02:00
Holger Vogt a67560b6cc remove warnings 2019-03-30 17:22:12 +01:00
Jim Monte 176017b464 Remove memory leak: If the check of the data fails, the data itself is leaked.
Signed-off-by: Holger Vogt <holger.vogt@uni-due.de>
2019-03-30 09:57:37 +01:00
Jim Monte d90b8a7f2d One of the links provided when the help command is executed returned a 404 not found error. This patch replaces that link with an HTML version of the ngspice manual.
Signed-off-by: Holger Vogt <holger.vogt@uni-due.de>
2019-03-30 09:30:41 +01:00
dwarning a934322dc3 no fall-through by asking m value 2019-03-28 06:18:32 +01:00
Jim Monte e04c64aa82 [PATCH 33 1/6] Fixed Visual Studio C4028 compiler warnings related to
mismatches between prototypes and function definitions

Signed-off-by: Holger Vogt <holger.vogt@uni-due.de>
2019-03-26 22:57:42 +01:00
Jim Monte 3d5b6918ca Fixed excess buffer allocation and converted wordlist to string more efficiently
Signed-off-by: Holger Vogt <holger.vogt@uni-due.de>
2019-03-26 22:34:55 +01:00
Holger Vogt 1b5e950d10 creating a linearized cutout of the original vector
by defining the vectors lin-tstart, lin-tstop, and lin-tstep
before issuing the 'linearize' command
2019-03-23 17:34:50 +01:00
Holger Vogt 400d0c0cee Revert "creating a linearized cutout of the original vector"
This reverts commit 29f364d475.
2019-03-23 17:33:09 +01:00
dwarning d8f1c463fa Tnom is not a instance parameter 2019-03-21 11:27:09 +01:00
dwarning 7049d932e5 Tnom default inline with model specification 2019-03-21 11:03:35 +01:00
dwarning 7405ff8e9e use a better place for model parameter defaulting 2019-03-21 11:02:08 +01:00
dwarning 0678f15dbe remove unused conductance variables 2019-03-21 10:54:52 +01:00