Browse Source
Small changes, e.g. _MS_VER macro, added to allow compilation of tclspice with MS VC++ 2008
pre-master-46
Small changes, e.g. _MS_VER macro, added to allow compilation of tclspice with MS VC++ 2008
pre-master-46
11 changed files with 141 additions and 106 deletions
-
3ChangeLog
-
4src/frontend/com_measure2.c
-
8src/frontend/evaluate.c
-
24src/frontend/resource.c
-
126src/frontend/variable.h
-
17src/include/ngspice.h
-
10src/include/wstdio.h
-
10src/main.c
-
2src/misc/util.c
-
4src/spicelib/devices/dev.c
-
39src/tclspice.c
@ -1,63 +1,63 @@ |
|||
/* |
|||
variable.h |
|||
$Id$ |
|||
*/ |
|||
|
|||
#ifndef _VARIABLE_H |
|||
#define _VARIABLE_H |
|||
|
|||
/* Variables that are accessible to the parser via $varname |
|||
* expansions. If the type is VT_LIST the value is a pointer to a |
|||
* list of the elements. */ |
|||
struct variable { |
|||
char va_type; |
|||
char *va_name; |
|||
union { |
|||
bool vV_bool; |
|||
int vV_num; |
|||
double vV_real; |
|||
char *vV_string; |
|||
struct variable *vV_list; |
|||
} va_V; |
|||
struct variable *va_next; /* Link. */ |
|||
} ; |
|||
|
|||
#define va_bool va_V.vV_bool |
|||
#define va_num va_V.vV_num |
|||
#define va_real va_V.vV_real |
|||
#define va_string va_V.vV_string |
|||
#define va_vlist va_V.vV_list |
|||
|
|||
enum vt_types { |
|||
VT_BOOL, |
|||
VT_NUM, |
|||
VT_REAL, |
|||
VT_STRING, |
|||
VT_LIST |
|||
}; |
|||
|
|||
struct xxx { |
|||
struct variable *x_v; |
|||
char x_char; |
|||
} ; |
|||
|
|||
|
|||
extern struct variable *variables; |
|||
extern bool cp_noglob; |
|||
extern bool cp_nonomatch; |
|||
extern bool cp_noclobber; |
|||
extern bool cp_ignoreeof; |
|||
extern bool cp_echo; |
|||
|
|||
/* extern struct variable *variables; */ |
|||
wordlist * cp_varwl(struct variable *var); |
|||
void cp_vset(char *varname, char type, char *value); |
|||
struct variable * cp_setparse(wordlist *wl); |
|||
void cp_remvar(char *varname); |
|||
bool cp_getvar(char *name, int type, void *retval); |
|||
wordlist * cp_variablesubst(wordlist *wlist); |
|||
wordlist * vareval(char *string); |
|||
void cp_vprint(void); |
|||
|
|||
|
|||
#endif /* _VARIABLE_H */ |
|||
/* |
|||
variable.h |
|||
$Id$ |
|||
*/ |
|||
|
|||
#ifndef _VARIABLE_H |
|||
#define _VARIABLE_H |
|||
|
|||
/* Variables that are accessible to the parser via $varname |
|||
* expansions. If the type is VT_LIST the value is a pointer to a |
|||
* list of the elements. */ |
|||
struct variable { |
|||
char va_type; |
|||
char *va_name; |
|||
union { |
|||
bool vV_bool; |
|||
int vV_num; |
|||
double vV_real; |
|||
char *vV_string; |
|||
struct variable *vV_list; |
|||
} va_V; |
|||
struct variable *va_next; /* Link. */ |
|||
} ; |
|||
|
|||
#define va_bool va_V.vV_bool |
|||
#define va_num va_V.vV_num |
|||
#define va_real va_V.vV_real |
|||
#define va_string va_V.vV_string |
|||
#define va_vlist va_V.vV_list |
|||
|
|||
enum vt_types { |
|||
VT_BOOL, |
|||
VT_NUM, |
|||
VT_REAL, |
|||
VT_STRING, |
|||
VT_LIST |
|||
}; |
|||
|
|||
struct xxx { |
|||
struct variable *x_v; |
|||
char x_char; |
|||
} ; |
|||
|
|||
|
|||
extern struct variable *variables; |
|||
extern bool cp_noglob; |
|||
extern bool cp_nonomatch; |
|||
extern bool cp_noclobber; |
|||
extern bool cp_ignoreeof; |
|||
extern bool cp_echo; |
|||
|
|||
/* extern struct variable *variables; */ |
|||
wordlist * cp_varwl(struct variable *var); |
|||
void cp_vset(char *varname, char type, char *value); |
|||
struct variable * cp_setparse(wordlist *wl); |
|||
void cp_remvar(char *varname); |
|||
bool cp_getvar(char *name, int type, void *retval); |
|||
wordlist * cp_variablesubst(wordlist *wlist); |
|||
wordlist * vareval(char *string); |
|||
void cp_vprint(void); |
|||
|
|||
|
|||
#endif /* _VARIABLE_H */ |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue