variables, add some comments, add explicit case US_NOSIMVAR
This commit is contained in:
parent
97cdaae19f
commit
485fba7548
|
|
@ -188,6 +188,7 @@ cp_vset(char *varname, enum cp_types type, void *value)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case US_DONTRECORD:
|
case US_DONTRECORD:
|
||||||
|
/* 'curplot' 'curplotname' 'curplottitle' 'curplotdate' */
|
||||||
/* Do nothing... */
|
/* Do nothing... */
|
||||||
if (alreadythere) {
|
if (alreadythere) {
|
||||||
fprintf(cp_err, "cp_vset: Internal Error: "
|
fprintf(cp_err, "cp_vset: Internal Error: "
|
||||||
|
|
@ -198,6 +199,7 @@ cp_vset(char *varname, enum cp_types type, void *value)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case US_READONLY:
|
case US_READONLY:
|
||||||
|
/* 'plots' and any var in plot_cur->pl_env */
|
||||||
fprintf(cp_err, "Error: %s is a read-only variable.\n", v->va_name);
|
fprintf(cp_err, "Error: %s is a read-only variable.\n", v->va_name);
|
||||||
if (alreadythere)
|
if (alreadythere)
|
||||||
fprintf(cp_err, "cp_vset: Internal Error: "
|
fprintf(cp_err, "cp_vset: Internal Error: "
|
||||||
|
|
@ -205,6 +207,7 @@ cp_vset(char *varname, enum cp_types type, void *value)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case US_SIMVAR:
|
case US_SIMVAR:
|
||||||
|
/* variables processed by if_option(ft_curckt->ci_ckt, ...) */
|
||||||
if (alreadythere) {
|
if (alreadythere) {
|
||||||
/* somehow it got into the front-end list of variables */
|
/* somehow it got into the front-end list of variables */
|
||||||
if (w) {
|
if (w) {
|
||||||
|
|
@ -240,6 +243,7 @@ cp_vset(char *varname, enum cp_types type, void *value)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case US_NOSIMVAR:
|
case US_NOSIMVAR:
|
||||||
|
/* variables processed by if_option(NULL, ...) */
|
||||||
/* What do you do? */
|
/* What do you do? */
|
||||||
free_struct_variable(v);
|
free_struct_variable(v);
|
||||||
break;
|
break;
|
||||||
|
|
@ -476,12 +480,14 @@ cp_remvar(char *varname)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case US_DONTRECORD:
|
case US_DONTRECORD:
|
||||||
|
/* 'curplot' 'curplotname' 'curplottitle' 'curplotdate' */
|
||||||
/* Do nothing... */
|
/* Do nothing... */
|
||||||
if (found)
|
if (found)
|
||||||
fprintf(cp_err, "cp_remvar: Internal Error: var %d\n", *varname);
|
fprintf(cp_err, "cp_remvar: Internal Error: var %d\n", *varname);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case US_READONLY:
|
case US_READONLY:
|
||||||
|
/* 'plots' and any var in plot_cur->pl_env */
|
||||||
/* Badness... */
|
/* Badness... */
|
||||||
fprintf(cp_err, "Error: %s is read-only.\n", v->va_name);
|
fprintf(cp_err, "Error: %s is read-only.\n", v->va_name);
|
||||||
if (found)
|
if (found)
|
||||||
|
|
@ -489,6 +495,7 @@ cp_remvar(char *varname)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case US_SIMVAR:
|
case US_SIMVAR:
|
||||||
|
/* variables processed by if_option(ft_curckt->ci_ckt, ...) */
|
||||||
fprintf(stderr, "it's a US_SIMVAR!\n");
|
fprintf(stderr, "it's a US_SIMVAR!\n");
|
||||||
lv = NULL;
|
lv = NULL;
|
||||||
if (ft_curckt) {
|
if (ft_curckt) {
|
||||||
|
|
@ -507,7 +514,9 @@ cp_remvar(char *varname)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case US_NOSIMVAR:
|
||||||
default:
|
default:
|
||||||
|
/* variables processed by if_option(NULL, ...) */
|
||||||
fprintf(cp_err, "cp_remvar: Internal Error: US val %d\n", i);
|
fprintf(cp_err, "cp_remvar: Internal Error: US val %d\n", i);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue