Holger Vogt
d4fcef9bf6
Repair the broken --enable-oldapps option
3 years ago
Giles Atkinson
73e8fed0fc
Fix warnings from gcc 10.2.1.
3 years ago
Holger Vogt
7f486febe9
Search for .spiceinit (or spice.rc) firstly in a user defined directory,
when the directory path is set in the environmental variable
SPICE_USERINIT_DIR.
If not found then search in the current directory, then in HOME, then
in USERPROFILE.
4 years ago
Giles Atkinson
e67261be29
Fix a crash that sometimes occurs on Linux when interrupting from
the terminal a simulation that was started directly from the command
line. A gdb backtrace showed rl_cleanup_after_signal() calling
fwrite() with a NULL file pointer.
4 years ago
Holger Vogt
6b83a57a18
Exit when executing the input fails,
if -o option (log file) is set and not in interactive mode.
Enables running the paranoia suite without hanging if
something goes wrong.
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
8de513e8e9
ngspice.exe and .dll (.so): seperate the main files:
main.c now belongs to exe, sharedspice.c to dll (so)
5 years ago
Holger Vogt
55359e36e0
if SHARED_MODULE, exclude some unused function from build.
Finally complete main.c should be removed in shared ngspice.
5 years ago
dwarning
c5b5ad67db
only one place for version and copyright message
5 years ago
Holger Vogt
9defcae963
Do not compile in fcn main() when shared ngspice is made
6 years ago
Holger Vogt
8143fb67c2
comment, missing \n
6 years ago
Holger Vogt
db91e19e36
enable making ngnutmeg, when --enable-oldapps is set
6 years ago
Jim Monte
41819a7226
FALLTHROUGH
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
Holger Vogt
51f80abe00
if inp_spsource() returns with an error code, emit a message
6 years ago
Jim Monte
d4088c896a
Restored command arguments accidentally deleted.
6 years ago
Jim Monte
06ebf80983
Modified search for init file so that it searches both <HOME> and <USERPROFILE> if both are defined.
6 years ago
Jim Monte
2068c4fffb
Added -D/--define option to define a variable from the command line.
6 years ago
Holger Vogt
ceea40e012
Revert "enable compiling with readline for macOS"
This reverts commit 11df2b7719 .
7 years ago
Holger Vogt
11df2b7719
enable compiling with readline for macOS
which has a very simple readline header only
7 years ago
Holger Vogt
1c8992bf15
Enable the file input as search path for .include files
also for non-Wondows OSs
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
d6f5a32c93
Add a comment to the editline #ifdef
7 years ago
Holger Vogt
a3f2c38eb6
upstream editline development at
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/readline/readline.h?sortby=date#rev1.42.2.1
have added two lines to readline.h:
typedef int rl_hook_func_t(void);
extern rl_hook_func_t *rl_event_hook;
ngspice rl_event_hook had originally been defined of type void. The patch
redefines the return type to be int.
7 years ago
Holger Vogt
ff2304625f
allows to start ngspice WinGUI by double click on an input file, if
the file extension has been associated with ngspice.exe
8 years ago
Holger Vogt
2786fcb86e
New .option seed=[val|random]
8 years ago
Holger Vogt
7ca61b3c98
New command 'setseed' with function com_sseed
to set the random number generator
8 years ago
Holger Vogt
8fbcb16a57
add fourth parameter to cp_getvar(), in functions missing so far
8 years ago
Holger Vogt
09c876550f
prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
8 years ago
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
8 years ago
Holger Vogt
0cb71b21bb
move ngspice_compat_mode(void) to inpcom.c and make it static
8 years ago
h_vogt
8762f6551d
main.c free argv after its use (Win GUI only)
10 years ago
Holger Vogt
8aff70036a
Put variable wantevtdata into the right place,
also available for standard executable, to be
modified in sharedspice.c only.
9 years ago
rlar
511cdd7188
struct card, #3/6, rename members from struct line to struct card
9 years ago
h_vogt
060e0037f8
main.c, add USERPROFILE to search path for .spiceinit
search sequence: current directory, HOME, USERPROFILE
9 years ago
h_vogt
bbd7edad72
xspice, two new commands, edisplay and eprvcd
'edisplay' will show a list of all event nodes
'eprvcd' will print all event nodes in vcd format
usage: eprvcd a0 a1 a2 b0 b1 b2 clk > myvcd.vcd
10 years ago
h_vogt
9f62057973
introduce include file "ngspice/randnumb.h"
10 years ago
rlar
5611ca4f10
harmonise all incarnations of `if_errstring()' to return malloced memory
10 years ago
h_vogt
494a58cca9
main.c, add variable 'batchmode'
which is set when command line option `-b' is active
10 years ago
rlar
18426c755d
harmonise `struct circ' variables, `ckt' --> `ci'
10 years ago
rlar
f826ff82f8
introduce `ATTRIBUTE_NORETURN' for `controlled_exit()' and `sp_shutdown()'
10 years ago
rlar
19e427e3a5
cleanup, use NULL instead of 0 in pointer context
11 years ago
rlar
e57b8b5426
main.c, volatile, make shure they are up to date in memory when LONGJMP is executed
11 years ago
rlar
f8df1a7b2f
src/main.c, whitespace cleanup
11 years ago
rlar
8369732e7b
src/main.c, cleanup
11 years ago
rlar
42d0e42e0d
src/main.c, prompt(), rewrite
11 years ago
rlar
15a04192da
src/main.c, prompt(), fix incorrect backslash expansion in promptstrings
11 years ago
rlar
a65a028067
src/main.c, prompt(), drop ancient workaround for editline v2.9
thats dead now for some years.
11 years ago
rlar
6aff8d5418
src/main.c, rewrite to be autoindent friendly
11 years ago
rlar
86c61c1909
src/main.c, nutmeg, cleanup `ft_loadfile()' invocation
drop non functional code which might originally have been meant
to read a default `ft_rawfile' when no other file
was given on the command line.
this would be disturbing behaviour anyway,
since it would be impossible to start
nutmeg interactively without any file.
11 years ago