textual replacement vt_types to cp_types, to complete the last change
This commit is contained in:
parent
a76cd1e104
commit
61bba96f42
12
ChangeLog
12
ChangeLog
|
|
@ -1,3 +1,15 @@
|
|||
2010-07-17 Robert Larice
|
||||
* src/frontend/variable.c ,
|
||||
* src/frontend/variable.h ,
|
||||
* src/frontend/vectors.c ,
|
||||
* src/frontend/plotting/graf.c :
|
||||
replace vt_types -> cp_types
|
||||
to complete the last change, lets rename the enum itself as well
|
||||
replacement was done mechanical, with
|
||||
perl -pi -e 's/vt_types/cp_types/g' $(git grep -le '\bvt_types' | grep -v ChangeLog)
|
||||
* src/include/cpextern.h :
|
||||
fix a comment, reflecting the VT_ -> CP_ change
|
||||
|
||||
2010-07-17 Robert Larice
|
||||
* src/* :
|
||||
textual replacement VT_* to CP_*
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ $Id$
|
|||
*/
|
||||
|
||||
#include <ngspice.h>
|
||||
#include "cpdefs.h" /* for VT_ */
|
||||
#include "cpdefs.h" /* for CP_ */
|
||||
#include "cpextern.h"
|
||||
#include <plot.h>
|
||||
#include "ftedebug.h" /* for iplot */
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ cp_varwl(struct variable *var)
|
|||
|
||||
/* Set a variable. */
|
||||
void
|
||||
cp_vset(char *varname, enum vt_types type, char *value)
|
||||
cp_vset(char *varname, enum cp_types type, char *value)
|
||||
{
|
||||
struct variable *v, *u, *w;
|
||||
int i;
|
||||
|
|
@ -540,7 +540,7 @@ cp_remvar(char *varname)
|
|||
/* Determine the value of a variable. Fail if the variable is unset,
|
||||
* and if the type doesn't match, try and make it work... */
|
||||
bool
|
||||
cp_getvar(char *name, enum vt_types type, void *retval)
|
||||
cp_getvar(char *name, enum cp_types type, void *retval)
|
||||
{
|
||||
struct variable *v;
|
||||
struct variable *uv1, *uv2;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
* expansions. If the type is CP_LIST the value is a pointer to a
|
||||
* list of the elements. */
|
||||
struct variable {
|
||||
enum vt_types va_type;
|
||||
enum cp_types va_type;
|
||||
char *va_name;
|
||||
union {
|
||||
bool vV_bool;
|
||||
|
|
@ -45,10 +45,10 @@ extern bool cp_echo;
|
|||
|
||||
/* extern struct variable *variables; */
|
||||
wordlist * cp_varwl(struct variable *var);
|
||||
void cp_vset(char *varname, enum vt_types type, char *value);
|
||||
void cp_vset(char *varname, enum cp_types type, char *value);
|
||||
struct variable * cp_setparse(wordlist *wl);
|
||||
void cp_remvar(char *varname);
|
||||
bool cp_getvar(char *name, enum vt_types type, void *retval);
|
||||
bool cp_getvar(char *name, enum cp_types type, void *retval);
|
||||
wordlist * cp_variablesubst(wordlist *wlist);
|
||||
wordlist * vareval(char *string);
|
||||
void cp_vprint(void);
|
||||
|
|
|
|||
|
|
@ -444,7 +444,7 @@ vec_get(const char *vec_name)
|
|||
*#define va_real va_V.vV_real
|
||||
*#define va_string va_V.vV_string
|
||||
*#define va_vlist va_V.vV_list
|
||||
*enum vt_types {
|
||||
*enum cp_types {
|
||||
* CP_BOOL,
|
||||
* CP_NUM,
|
||||
* CP_REAL,
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ void cp_rehash(char *pathlist, bool docc);
|
|||
|
||||
/* variable.c */
|
||||
|
||||
enum vt_types {
|
||||
enum cp_types {
|
||||
CP_BOOL,
|
||||
CP_NUM,
|
||||
CP_REAL,
|
||||
|
|
@ -174,7 +174,7 @@ extern bool cp_noglob;
|
|||
extern bool cp_nonomatch;
|
||||
extern char cp_dol;
|
||||
extern void cp_remvar(char *varname);
|
||||
extern void cp_vset(char *varname, enum vt_types type, char *value);
|
||||
extern void cp_vset(char *varname, enum cp_types type, char *value);
|
||||
extern struct variable *cp_setparse(wordlist *wl);
|
||||
extern wordlist *vareval(char *string);
|
||||
|
||||
|
|
@ -185,7 +185,7 @@ extern void com_option(wordlist *wl);
|
|||
extern void com_state(wordlist *wl);
|
||||
extern void com_unset(wordlist *wl);
|
||||
extern void com_shift(wordlist *wl);
|
||||
extern bool cp_getvar(char *name, enum vt_types type, void *retval);
|
||||
extern bool cp_getvar(char *name, enum cp_types type, void *retval);
|
||||
|
||||
/* cpinterface.c etc -- stuff CP needs from FTE */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue