Giles Atkinson
41c61604c5
Handle SIGTTIN and SIGTTOU on Unix-like OSs with X11 graphics.
That makes it possible to push ngspice into the background while
plot windows are open: the windows remain responsive.
Discussion on ngspice-users, starting 2023-09-01,
title: "`quit` in Interactive Mode."
Also restore terminal state when forcing exit with SIGINT (control-C).
3 years ago
Holger Vogt
a597c6a295
Suppress I/O redirection for command 'circbyline'.
This enables sending commands like
circbyline btest testnode 0 v=((v(in1) - v(in2)) < 0.1 ? 0.111 : v(in1))
4 years ago
Holger Vogt
16f619818e
Remove a conflict between the text variable substitution like
set text = "mytext"
set newtext = new.{$text}
echo $newtext
and the command circbyline, which may have to process strings
containing braces {...} without any change to the string.
Do not call cp_doglob() when command circbyline is executed.
4 years ago
Holger Vogt
99f2414caf
Prevent a segfault when the parameter to command 'repeat' is given,
but cannot be evaluetd to a number.
4 years ago
Giles Atkinson
23e9df0181
Fix for ticket #570 : Interactive prompting is always active.
Control prompting with variable "interactive" and stop setting it by default.
Add code in main.c to set it for an interactve session.
4 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
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
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
068df274bf
Made ft_numparse() thread-safe (no internal static variables) and prepared to support ngspice variable type CP_NUM.
6 years ago
Jim Monte
74857e2527
[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
7 years ago
Holger Vogt
ebe4fd5332
control.c, bug 374, prevent crash if cend[stackp] is NULL
reported by PyroPeter
7 years ago
Holger Vogt
0406546f7e
remove a small memoryleak in (nested) goto loops
8 years ago
Holger Vogt
9332801382
free the original wlist, made by getcommand(),
not a derived wlist that is just part of the original
8 years ago
h_vogt
c74ad9b3ee
control.c, remove memory leaks
10 years ago
rlar
4c1c95e20f
everywhere, use `TMALLOC()' instead of `alloc()'
10 years ago
h_vogt
88414a58ce
frontend/control.c, bug fix, "#310 Command parser problem with wrdata"
make all commands (see manual 17.5) entered manually,
with .control section or by script case insensitive.
generally in inpcom.c everything is converted to lowercase,
but there are exceptions, e.g. "wrdata", which might be
followed by arguments whose case needs to be preserved.
(most notably filenames)
Thanks to Mathias Gebhardt, who reported this bug in
#310 Command parser problem with wrdata
http://sourceforge.net/p/ngspice/bugs/310/
10 years ago
rlar
19e427e3a5
cleanup, use NULL instead of 0 in pointer context
11 years ago
rlar
e2c0303865
avoid `unreachable code' warnings
13 years ago
rlar
bedbdb65bb
cleanup some line wraps
13 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
rlar
f3b5336d3a
cleanup some macros, try to be more careful
14 years ago
rlar
891d99497d
use wl_find()
14 years ago
rlar
1e65ea9e80
rewrite using wl_ functions
this fixed following bug as well:
echo "echo abra ; ; echo kadabra" | ngspice -p
building a circular list and looping forever
14 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
14 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
h_vogt
220cc83458
fft calculation with type double (instead of float)
15 years ago
rlar
23056573d8
code cleanup, drop NULL pointer casts
15 years ago
rlar
0b6a557334
code cleanup
15 years ago
h_vogt
1ea76af678
add statistical functions to numparam and nutmeg parsers
15 years ago
rlar
05441d5823
Nr 5/5 (x = ...) == NULL , swallow warnings
16 years ago
rlar
ea8d250999
bug fix, incorrect handling of `co_spiceonly' commands
16 years ago
rlar
3c3b31fa60
declare some functions `static'
16 years ago
rlar
8dd05de4ca
bug fix, segfaults and sickness caused by `plot'
16 years ago
rlar
a76cd1e104
textual replacement VT_* to CP_*, to avoid conflict in the windows world
16 years ago
rlar
cab9417c9a
eliminate co_stringargs, which is used nowhere
16 years ago
h_vogt
eef75ffab5
remove bug no. 2724127 repeat loop inside another loop
17 years ago
dwarning
6bd5f8470b
Changes to compile under Sun Studio 11 for Solaris
18 years ago
sjborley
cb247a15fb
Added support for the BSD licensed editline library (libedit).
21 years ago
sjborley
a1991eee19
Fixed issues with the alternate prompt
21 years ago
pnenzi
1260ae08db
Update autoconf scripts and applied Niessner patch to remove compiler warnings.
22 years ago
pnenzi
531fb3575a
Applied Vera Patch to correct bugs in shell code and re-enabling interpolate command.
23 years ago
pnenzi
8362dec274
Integrated code from tclspice, brorson xspice and Vera memleak.
23 years ago
pnenzi
7583d1849e
Applied another bunch of patches sent by CDHW (Charles D.H. Williams). The patches
are aimed to close some leaks in the parser.
25 years ago
pnenzi
6f55975cc0
Code clean up (removed some warning)
25 years ago
arno
839ade8236
* src/frontend/com_ahelp.c src/frontend/com_ahelp.h
26 years ago