Giles Atkinson
4feb0c3ccc
Remove function cp_ccon() and related code. The function modifies
the terminal driver's treatment of the control-D (EOF) and escape
keys on Unix-like OSs. But escape has no special meaning, and treating
control-D as a line terminator was probably to prevent unexpected
session exit when connected through a modem without error-correction.
Removing the function allows "ngspice netlist &" to work correctly.
The function was called during initialisation, which caused an endless
loop of job-control stops when ngspice was started as a background process.
2 years ago
Holger Vogt
ab0cf31148
Guard reading and executing spinit by variable no_spinit.
2 years ago
Giles Atkinson
2790fd68bb
Make the special "noglob" variable work. To preserve previous behaviour
change the default value from true to undefined (meaning false).
Also fix a misleading comment in glob.c.
3 years ago
Holger Vogt
d4c54123d4
Revert "Add code in ivars.c to look for a SPICE_ROOT environment variable"
This reverts commit 6b0ab44f1e .
3 years ago
Giles Atkinson
6b0ab44f1e
Add code in ivars.c to look for a SPICE_ROOT environment variable
that gives the location of the ngspice installation. That allows
binaries to be installed in a different directory to the one
compiled in. The spinit startup file is made location-independent
by passing a variable giving the location of loadable modules,
so this fixes Bug #615 -
"spinit contains arch dependent paths, but is installed as noarch DATA".
3 years ago
Holger Vogt
360b7dc7ed
Make warning message on missing init file more verbose.
4 years ago
Holger Vogt
ccd9a217c3
Enable math characters in vector (node) names for logic comparison
Replace ft_getpnames() by ft_getpnames_quotes().
4 years ago
Holger Vogt
3e98cecd56
enable paths with spaces for finding 'spinit'
5 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
Holger Vogt
712014b6db
Does crash with recent Linux openSUSE Tumbleweed
Not required by shared ngspice
7 years ago
Jim Monte
c71d66a3bb
[PATCH #49 ] Ensured no buffer overrun for long script strings and
improved efficiency of building string
7 years ago
Jim Monte
0183964d6f
[PATCH #41 ] Made constants agree across ngspice simulator. File const.h
is the source of the values with all other files referencing it.
7 years ago
Holger Vogt
7598bbe83b
[PATCH 35] Fixed values of physical constants such as the speed of light
7 years ago
rlar
b803b294b4
frontend/parser/lexical.c, cp_lexer(), allow # and * comment
Both, whether interactive or not.
Especially for command scripts.
9 years ago
h_vogt
0bf381e01d
cpitf.c, for Windows, introduce csh variable "win_console"
to reflect whether this .exe is a "console" build
9 years ago
h_vogt
670880086f
cpitf.c, MS Visual Studio, introduce csh variable "pg_config"
reflecting .exe compilation for
32/64 bit
with/without NGDEBUG
10 years ago
h_vogt
e60f2f63e1
frontend/cpitf.c, cp_istrue(), cleanup comments
10 years ago
h_vogt
8b709a394f
cpitf.c, cp_istrue(), avoid surplus Warning Message when an `if' condition expands to nothing
When in expression
if $var ...
the variable `var' was undefined, then
ngspice printed a surplus warning message
> Warning: NULL arithmetic expression
in addition to the error message
> Error: var: no such variable.
ngspice continues to process the conditional construct
and evaluates the condition as "FALSE"
10 years ago
rlar
059f2b6c0d
fix garbage collection of vectors returned by ft_evaluate()
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
71a7c3459b
use char variants of the <ctype.h> isxxxx() family
10 years ago
rlar
6ff1560487
frontend/cpitf.c, free a temporary vector which was left in `cp_istrue()'
reported by Marcel Hendrix.
Using conditional expressions within a .control sequence
left some garbage vectors in the current plot.
For example
> let ix = 0
>
> while ix < 2
> let ix = ix + 1
> end
>
> display
"display" reported a variable named "ix < 2"
which was an internal temporary value in said function `cp_istrue()'
11 years ago
rlar
e609c7411d
src/frontend/vectors.c, abstraction, introduce `vec_iszero()'
11 years ago
dwarning
db52073f5d
cpitf.c: bugfix #304 reported by Dave Clarc, correct base of natural logarithm
11 years ago
h_vogt
d7e291c53a
HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
13 years ago
h_vogt
1e88db6f7d
add command 'circbyline' to allow entering circuit line by line
13 years ago
rlar
35c0e9eca3
variable rename, unify the source
checked for object file invariance
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
51271d2a0b
cp_oddcomm(), plug a memory leak
14 years ago
rlar
64b8dfc570
use wl_delete_slice()
14 years ago
rlar
fee664bc19
untabify
14 years ago
rlar
8d0306c27a
cpif.c, whitespace, indentation, cleanups
14 years ago
rlar
75d6f6da5e
cpitf.c, cleanup using wl_ functions
14 years ago
rlar
37940c9133
search for tclspinit in `cwd' as well
14 years ago
rlar
a056ea3065
#3/4 switch realpart() and imagpart() args from ngcomplex* to ngcomplex
14 years ago
rlar
3e98e15a20
cleanup
14 years ago
rlar
0b5042e7da
remove CVS `Id',`log' etc. keyword incantations
14 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
15 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
h_vogt
661d287029
env. var NGSPICE_INPUT to hold additional path for input files
15 years ago
rlar
05441d5823
Nr 5/5 (x = ...) == NULL , swallow warnings
16 years ago
rlar
e6c30efe46
Nr 4/5 (x = ...) != NULL , swallow warnings
16 years ago
rlar
6b5debfc1e
use `NUMELEMS' and add some `(int)' casts
16 years ago
rlar
196262dd1b
move the com_*() prototypes around.
16 years ago
rlar
2010672489
rename configure.in -> configure.ac
16 years ago
rlar
73cf2a8ea5
use a void * for the third argument (&value) of the cp_vset() function
16 years ago
rlar
a76cd1e104
textual replacement VT_* to CP_*, to avoid conflict in the windows world
16 years ago