mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-04 19:10:57 +02:00
Made cp_enqvar() mode modular by adding a separate function to handle the case of a vector. Lists are more efficiently handled by moving common comparisons out of the loop over elements. The first argument of cp_enqvar() is changed from char * to const char * since the name of the variable being found is not altered by the function.
This commit is contained in:
@@ -181,7 +181,7 @@ extern void cp_periodic(void);
|
||||
extern void ft_cpinit(void);
|
||||
extern struct comm *cp_coms;
|
||||
extern char *cp_program;
|
||||
extern struct variable *cp_enqvar(char *word, int *tbfreed);
|
||||
extern struct variable *cp_enqvar(const char *word, int *tbfreed);
|
||||
extern struct variable *cp_usrvars(void);
|
||||
int cp_usrset(struct variable *var, bool isset);
|
||||
extern void fatal(void);
|
||||
|
||||
Reference in New Issue
Block a user