Holger Vogt
b07ae3123e
use only internal memory functions,
replace strdup by copy
8 years ago
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
8 years ago
Holger Vogt
a2b52b588e
a space is required between tokens that have got {}
8 years ago
Holger Vogt
417dbfef72
undo the previous commits dealing with snprintf,
use the C99 compliant function also with MS Visual Studio
8 years ago
Holger Vogt
92dd6e48d0
make up description comment for pspice_compat()
8 years ago
Holger Vogt
3b4640dee4
_snprintf in Windows 7 does not automatically put a '\0'
to the end of the buffer, only if there is space available.
That will change in the future if Snprintf is used.
8 years ago
Holger Vogt
1d9ab3eb5c
PSÜICE compatibility:
R n1 n2 val TC=xx1,xx2 --> R n1 n2 val TC1=xx1 TC2=xx2
8 years ago
Holger Vogt
22b7fa77b5
fix a bug with switches, when no subcircuit is involved
8 years ago
Holger Vogt
e5652cd745
safeguard fclose
8 years ago
Holger Vogt
2f56feea4a
do not lower-case command 'set sourcepath = XXX'
8 years ago
Holger Vogt
2e0b8b3e34
plug a small memory leak
8 years ago
Holger Vogt
a40ba9ec4e
add a comment
8 years ago
Holger Vogt
ae81481229
white spaces
8 years ago
Holger Vogt
7b6cd86a62
re-write vswitch transformation code:
first scan: check for each .model with vswitch
second scan: check for switch instances
(s lines) using the models
8 years ago
Holger Vogt
f9b11cd619
update to function pspice_compat(), concerning the VSWITCH replacement
only one .model replacement even for several s instances
firstly search in subcircuit at same level, then in top level
8 years ago
Holger Vogt
f4f389dabb
internal help: it is only available when --enable-oldapps is given
ngnutmeg is only made when --enable-oldapps is given during ./configure
8 years ago
Holger Vogt
0cb71b21bb
move ngspice_compat_mode(void) to inpcom.c and make it static
8 years ago
Holger Vogt
d991bbc470
ngconfig.sh is no more available
8 years ago
h_vogt
e47ab87385
inpcom.c, multiplier 'm' in subcircuits: exclude all devices not supporting multiplier 'm'
9 years ago
h_vogt
d89eab99d5
add dicoS->linecount to safely delete dynrefptr[i],
linecount may change if circuits are changed or deleted.
10 years ago
h_vogt
1066bf0a7b
Store the numparam dicoS structure for each circuit in a list.
Functions to add, remove, retrive dicoS from the list
and to update dicoS, if the circuit has been changed.
Keeping dicoS is necessary because it may be used by measure.
This patch prevents (huge) memory leaks by overwriting
dicoS if multiple calls to the 'source' command are executed.
10 years ago
h_vogt
4a3f02e979
runcoms.c, add variable 'sim_status' to indicate if a simulation has been aborted
10 years ago
h_vogt
2ece845f59
inpcom.c, responding to bug report 275 by Dominique Michel: commands plot, hardcopy: no lower case letters in tokens following xlabel, ylabel, title
10 years ago
Holger Vogt
7ee0b14431
better zero after deaalocation
8 years ago
Holger Vogt
8f41257d87
enable 'temper' evaluation, if circuit is reloaded
8 years ago
Holger Vogt
cbe4b31d4b
do not delete symbols that have not been created here
8 years ago
h_vogt
ce9f23f7af
outitf.c, restrict vector length to 1, the minimum needed
9 years ago
h_vogt
a393c47ec8
outitf.c, add flag 'save none' for shared ngspice. Output data will not be stored, but are available via callback function ng_data.
9 years ago
Holger Vogt
bea6fba788
prevent false reads in multi-threaded ngshared
8 years ago
Holger Vogt
74584c94ee
prevent false reading after copying an empty file
8 years ago
Holger Vogt
d311fb10cf
add a new vector type "temperature"
8 years ago
Holger Vogt
5b18732af2
plug some memory leaks
8 years ago
Holger Vogt
a191697bd6
safeguard opening of file for debug output:
may be not allowed if caller is not started
in admin mode.
8 years ago
Holger Vogt
57156e16f6
remove tiny memory leaks in inp_compat()
8 years ago
Holger Vogt
5f5eacc48e
move skipping white spaces to fcn create_circbyline() now ' .end' is acknowledged
8 years ago
rlar
55b2a0218e
noise for behavioural resistor
9 years ago
Holger Vogt
1426f66967
use global variable inp_compat_mode
8 years ago
Holger Vogt
65181ff5c3
enable token 'table' to occur at any place in e source line
8 years ago
Holger Vogt
ffb3800e34
Bug fix: B source pwl lines don't get special handling,
but standard numparam handling of {} tokens
8 years ago
Holger Vogt
c879294a8b
add comment
8 years ago
Holger Vogt
7188605ef2
bugfix: re-enable loading deck from circarray, if intfile
8 years ago
Holger Vogt
04059e5426
enable '-' as valid character in a subcircuit name
8 years ago
h_vogt
c8cd763314
gnuplot.c, add 'noretraceplot' to prevent retracing of the graph if plotting against a vector which is not the original scale vector ('plot vec1 vs vec2')
10 years ago
h_vogt
d4adb027d2
avoid retrace in output graph by adding label 'noretraceplot'
to the plot command, that creates a lin plot trying to avoid retracing
10 years ago
Holger Vogt
bb162de1d8
Parameter names in .model lines may be preceeded
by spaces, but also by '('
8 years ago
Holger Vogt
53bac06d11
.model replacement in ako (a kind of) model descriptions
in first level .subckt and top level only
8 years ago
Holger Vogt
d9dbde0593
replace the E source TABLE function by a B source pwl
(used by ST OpAmps and comparators)
8 years ago
Holger Vogt
10c69b8d05
replace S1 D S DG GND SWN by
a1 %v(DG) %gd(D S) swa
8 years ago
Holger Vogt
f25a307886
get the area factor for diodes and bipolar devices
8 years ago
Holger Vogt
9d8148edae
replace T_ABS by temp and T_REL_GLOBAL by dtemp in .model cards
8 years ago