Holger Vogt
ded0092ad6
If ngSpice_Command(NULL) is sent to shared ngspice,
the internal control structure memory is freed.
6 years ago
Holger Vogt
1353a5de77
allow again single letter vector names
6 years ago
Holger Vogt
9d53780992
allow vec_get to verify vectors if their names are quoted by ""
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
f7951af50b
Fixed locating vectors like V(node)
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
89efe5aeae
Dynamic string (dstring) rework
6 years ago
Holger Vogt
f9a4800d86
[PATCH #55-2] Prevent reading from a NULL pointer
7 years ago
Jim Monte
ea81da2b01
[PATCH #55-1] Fixed some compiler warnings added by Visual Studio 2019
7 years ago
Jim Monte
b66412f517
[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.
7 years ago
Holger Vogt
9ee359b1e9
beautify code with astyle
7 years ago
Holger Vogt
1fb2a04f79
use fcn plot_get
7 years ago
Holger Vogt
40411197e0
add function get_plot(name) to return address of named plot
7 years ago
Holger Vogt
c5b5190199
command 'setplot': add predefined 'previous' and 'next' parameters
to switch to the previous or next plot. A warning results if this
is not possible, then the currnt plot is not changed.
8 years ago
Holger Vogt
284f68765d
frontend/vectors.c, readability of warning message
8 years ago
rlar
141ed61ec8
use memcpy() instead of deprecated bcopy()
10 years ago
h_vogt
3c2c6e8cde
vectors.c, vec_get(), remove a memory leak
10 years ago
rlar
5e04924890
cleanup `skip_ws()' usage
10 years ago
rlar
b1d8b99018
skip-ws, #6/6, rename to match inpcom.c
10 years ago
rlar
22875d056b
skip-ws, #5/6, use functional style
10 years ago
rlar
a86f2068c8
skip-ws, #3/6, use TEMPORARY macros, obj-invariant
10 years ago
rlar
6d1171ad6f
skip-ws, #2/6, introduce "ngspice/stringskip.h"
with some temporary macros to skip whitespace
10 years ago
rlar
1ad65120d5
skip-ws, #1/6, prepare for rewrite, obj-invariant
10 years ago
rlar
4c1c95e20f
everywhere, use `TMALLOC()' instead of `alloc()'
10 years ago
rlar
71a7c3459b
use char variants of the <ctype.h> isxxxx() family
10 years ago
rlar
9d32a0a5a9
simplify complex assignments
10 years ago
rlar
df70661c3a
dvec abstraction, #11/11, introduce `dvec_realloc()'
10 years ago
rlar
3962453739
dvec abstraction, #9/11, introduce `dvec_free()'
10 years ago
rlar
8243696338
dvec abstraction, #8/11, upgrade `dvec_alloc()'
10 years ago
rlar
8a4a37b5bb
dvec abstraction, #4/11, emphasise `ZERO(dvec)' initialisation
10 years ago
rlar
908c650f72
dvec abstraction, #3/11, use `dvec_alloc()'
10 years ago
rlar
08ad3f6ab5
dvec abstraction, #1/11, reorder
10 years ago
rlar
1c1fa6b333
frontend/vectors.c, vec_mkfamily(), #6/6 reorder
10 years ago
rlar
a3bf161f89
frontend/vectors.c, vec_mkfamily(), #5/6 fuse those two `for' loops
10 years ago
rlar
f86d5c60e4
frontend/vectors.c, vec_mkfamily(), #4/6 drop `j', reuse `i'
10 years ago
rlar
e52b85ac6c
frontend/vectors.c, vec_mkfamily(), #3/6 earlier initialisation of `count[]'
10 years ago
rlar
83ac9c1d2d
frontend/vectors.c, vec_mkfamily(), #2/6 rewrite v_link2 consing
10 years ago
rlar
d4558079e3
frontend/vectors.c, vec_mkfamily(), #1/6 bug fix, set v_dims[] properly
10 years ago
rlar
30becb4509
frontend/vectors.c, vec_get(), #2/2 rewrite
10 years ago
rlar
d360023e14
frontend/vectors.c, vec_get(), #1/2 drop unused allocation
10 years ago
rlar
192eeadb0b
remove crufty comments which where used to support broken text editors
11 years ago
rlar
e609c7411d
src/frontend/vectors.c, abstraction, introduce `vec_iszero()'
11 years ago
rlar
5ac7858a79
rewrite, use tprintf
11 years ago
rlar
4184aa8c10
cleanup, use array operator
checked for object file invariance on linux with
./configure --enable-debug=no --enable-maintainer-mode --with-readline=yes --enable-cider --enable-ndev --enable-pss --enable-xspice
13 years ago
rlar
190932bf65
use enum simulation_types values instead of numericals
13 years ago
h_vogt
c5de0c21c9
findvec(), use hash tables for the vector search
patch originally provided by Bill Swartz, 2010
reduces vector search time from O(n) to O(1)
14 years ago
rlar
0336e31c57
vector.c, rewrite vec_basename(), FIXME !
This rewritten code is functionally equivalent to the previous code,
yet the result is queer,
because the char *v_name slot of struct dvec is read
beyond its terminating '\0'
Is there indeed some code in ngspice which creates
v_name strings with an embedded '\0' ?
14 years ago
rlar
0280a49b69
bug fix, avoid segfault when the refered plot is still empty
14 years ago
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
14 years ago
rlar
7454a6d486
src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...
checked for object file invariance on linux
14 years ago