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
|
2010-07-17 Robert Larice
|
||||||
* src/* :
|
* src/* :
|
||||||
textual replacement VT_* to CP_*
|
textual replacement VT_* to CP_*
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ngspice.h>
|
#include <ngspice.h>
|
||||||
#include "cpdefs.h" /* for VT_ */
|
#include "cpdefs.h" /* for CP_ */
|
||||||
#include "cpextern.h"
|
#include "cpextern.h"
|
||||||
#include <plot.h>
|
#include <plot.h>
|
||||||
#include "ftedebug.h" /* for iplot */
|
#include "ftedebug.h" /* for iplot */
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ cp_varwl(struct variable *var)
|
||||||
|
|
||||||
/* Set a variable. */
|
/* Set a variable. */
|
||||||
void
|
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;
|
struct variable *v, *u, *w;
|
||||||
int i;
|
int i;
|
||||||
|
|
@ -540,7 +540,7 @@ cp_remvar(char *varname)
|
||||||
/* Determine the value of a variable. Fail if the variable is unset,
|
/* Determine the value of a variable. Fail if the variable is unset,
|
||||||
* and if the type doesn't match, try and make it work... */
|
* and if the type doesn't match, try and make it work... */
|
||||||
bool
|
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 *v;
|
||||||
struct variable *uv1, *uv2;
|
struct variable *uv1, *uv2;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
* expansions. If the type is CP_LIST the value is a pointer to a
|
* expansions. If the type is CP_LIST the value is a pointer to a
|
||||||
* list of the elements. */
|
* list of the elements. */
|
||||||
struct variable {
|
struct variable {
|
||||||
enum vt_types va_type;
|
enum cp_types va_type;
|
||||||
char *va_name;
|
char *va_name;
|
||||||
union {
|
union {
|
||||||
bool vV_bool;
|
bool vV_bool;
|
||||||
|
|
@ -45,10 +45,10 @@ extern bool cp_echo;
|
||||||
|
|
||||||
/* extern struct variable *variables; */
|
/* extern struct variable *variables; */
|
||||||
wordlist * cp_varwl(struct variable *var);
|
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);
|
struct variable * cp_setparse(wordlist *wl);
|
||||||
void cp_remvar(char *varname);
|
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 * cp_variablesubst(wordlist *wlist);
|
||||||
wordlist * vareval(char *string);
|
wordlist * vareval(char *string);
|
||||||
void cp_vprint(void);
|
void cp_vprint(void);
|
||||||
|
|
|
||||||
|
|
@ -444,7 +444,7 @@ vec_get(const char *vec_name)
|
||||||
*#define va_real va_V.vV_real
|
*#define va_real va_V.vV_real
|
||||||
*#define va_string va_V.vV_string
|
*#define va_string va_V.vV_string
|
||||||
*#define va_vlist va_V.vV_list
|
*#define va_vlist va_V.vV_list
|
||||||
*enum vt_types {
|
*enum cp_types {
|
||||||
* CP_BOOL,
|
* CP_BOOL,
|
||||||
* CP_NUM,
|
* CP_NUM,
|
||||||
* CP_REAL,
|
* CP_REAL,
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,7 @@ void cp_rehash(char *pathlist, bool docc);
|
||||||
|
|
||||||
/* variable.c */
|
/* variable.c */
|
||||||
|
|
||||||
enum vt_types {
|
enum cp_types {
|
||||||
CP_BOOL,
|
CP_BOOL,
|
||||||
CP_NUM,
|
CP_NUM,
|
||||||
CP_REAL,
|
CP_REAL,
|
||||||
|
|
@ -174,7 +174,7 @@ extern bool cp_noglob;
|
||||||
extern bool cp_nonomatch;
|
extern bool cp_nonomatch;
|
||||||
extern char cp_dol;
|
extern char cp_dol;
|
||||||
extern void cp_remvar(char *varname);
|
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 struct variable *cp_setparse(wordlist *wl);
|
||||||
extern wordlist *vareval(char *string);
|
extern wordlist *vareval(char *string);
|
||||||
|
|
||||||
|
|
@ -185,7 +185,7 @@ extern void com_option(wordlist *wl);
|
||||||
extern void com_state(wordlist *wl);
|
extern void com_state(wordlist *wl);
|
||||||
extern void com_unset(wordlist *wl);
|
extern void com_unset(wordlist *wl);
|
||||||
extern void com_shift(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 */
|
/* cpinterface.c etc -- stuff CP needs from FTE */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue