rlar
71a7c3459b
use char variants of the <ctype.h> isxxxx() family
10 years ago
rlar
07aba2e2ae
frontend/variable.c, used `isalnum()' instead of homegrown `isalphanum()'
10 years ago
rlar
192eeadb0b
remove crufty comments which where used to support broken text editors
11 years ago
rlar
5ac7858a79
rewrite, use tprintf
11 years ago
rlar
ccc4c60d81
src/frontend/variable.c, swallow "warning: conversion to 'int' from 'size_t' may change the sign of the result"
11 years ago
rlar
d18d2a935c
src/frontend/variable.c, rewrite `cp_variablesubst()'
11 years ago
rlar
33d33e9d50
src/frontend/variable.c, fix expansion of '$var' when $var is an empty list
test case:
set foo = ( )
set foo = ( $foo baz bar )
echo $foo
11 years ago
h_vogt
23ffcbf7d1
variable.c: prevent buffer overflow by limiting variable output to BSIZE_SP characters
12 years ago
dwarning
54529d0e42
allow cshell $variable substitution with and without $&var
13 years ago
rlar
2555eeadef
fix the csh-problem $foo[$bar] and $foo[$&baz]
13 years ago
rlar
909f087237
cp_variablesubst() and cp_bquote(), rewrite
13 years ago
rlar
9eab66131d
cp_variablesubst() and cp_bquote(), rewrite
13 years ago
rlar
451c121dd5
improve commit `variable.c: add strict error handling'
14 years ago
h_vogt
d5a2a361f6
variable.c: add strict error handling
14 years ago
rlar
11579d9369
cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones)
14 years ago
dwarning
2506fe3858
changed the #include order - ngspice.h must be first
because icc complains about declaration visibility of mmsghdr struct
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
ec1a71249a
fix ownership of `cp_promptstring' and `cp_program'
14 years ago
rlar
d4ced47e8e
drop out_pbuf, which was an ancient workaround
obviously an old implementation of out_printf()
has been unreliable.
14 years ago
rlar
fa81e9d007
plug a memory leak when (un)setting variables
14 years ago
rlar
d6ba5e5b3f
cleanup free_struct_variable()
14 years ago
rlar
75c59a26fa
variable.c, cleanup (mostly whitespace)
14 years ago
rlar
9655b9885a
cleanup, use wl_cons(), wl_append_word() and wl_chop_rest()
14 years ago
rlar
76336fa21b
fix memory leak in cp_vset()
14 years ago
rlar
4ca58067a2
#2/6 config.h --> ngspice/config.h, #include's
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
rlar
1ec269082c
round to nearest integer, `rawfileprec' `numdgt' `history' if_option() doset()
15 years ago
h_vogt
e6c86b4d98
explicit casting double -> int etc.
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
ad8ad56955
Nr 3/5 (x = ...) != 0 , swallow warnings
16 years ago
rlar
b4ffca60c4
(int) casts for some `strlen()' expressions
16 years ago
rlar
01566f2b49
add casts to make `int' versus `size_t' conversions explicit
16 years ago
rlar
7b3960506f
wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC
16 years ago
rlar
bf0b7b4386
qsort() usage, drop cast of the first argument (which is a void *)
16 years ago
rlar
1d62b41bfa
collect cp_* prototypes / extern-declarations in "cpextern.h"
16 years ago
rlar
4cdd842cd8
muffle compiler warnings
16 years ago
rlar
62afa50a1c
fix dangerous things, potential bugs, at least for big endian machines
16 years ago
rlar
73cf2a8ea5
use a void * for the third argument (&value) of the cp_vset() function
16 years ago
rlar
d44f818cad
allow cp_getvar(,CP_BOOL,NULL) to avoid insane usage
16 years ago
rlar
61bba96f42
textual replacement vt_types to cp_types, to complete the last change
16 years ago
rlar
a76cd1e104
textual replacement VT_* to CP_*, to avoid conflict in the windows world
16 years ago
rlar
0aa1c09d73
consolidate enum cp_types and enum vt_types .
use this enum for some function arguments and struct members .
drop some include "variable.h" which are no longer needed ,
propably many more could be droped .
drop #define VT_* which have been used as workaround for the type mess .
16 years ago
rlar
59d4e5d961
fix various type glitches
16 years ago
h_vogt
625b3d14fc
no crash after 'unset undefined'
16 years ago
h_vogt
e43430a669
memory leaks removed
17 years ago
h_vogt
e9d957d2d6
memory leaks removed
17 years ago
h_vogt
e3fc225e50
memory leaks removed
17 years ago
pnenzi
6f3f195158
Additions from Phil Barker (subckt nodeset and ic, simvars, mosfet binning, various fixes)
19 years ago