Browse Source

Remove a typo: runable --> runnable

pre-master-46
Holger Vogt 4 years ago
parent
commit
597bc9edd0
  1. 12
      src/frontend/inp.c
  2. 2
      src/include/ngspice/fteinp.h

12
src/frontend/inp.c

@ -136,7 +136,7 @@ Xprintf(FILE *fdst, const char *fmt, ...)
}
/* Do a listing. Use is listing [expanded] [logical] [physical] [deck] [runable] */
/* Do a listing. Use is listing [expanded] [logical] [physical] [deck] [runnable] */
void
com_listing(wordlist *wl)
{
@ -170,7 +170,7 @@ com_listing(wordlist *wl)
case 'r':
case 'R':
expand = TRUE;
type = LS_RUNABLE;
type = LS_RUNNABLE;
break;
default:
fprintf(cp_err, "Error: bad listing type %s\n", s);
@ -183,7 +183,7 @@ com_listing(wordlist *wl)
if (do_param_listing) {
nupa_list_params(cp_out);
} else {
if (type != LS_DECK && type != LS_RUNABLE)
if (type != LS_DECK && type != LS_RUNNABLE)
fprintf(cp_out, "\t%s\n\n", ft_curckt->ci_name);
inp_list(cp_out,
expand ? ft_curckt->ci_deck : ft_curckt->ci_origdeck,
@ -240,7 +240,7 @@ inp_list(FILE *file, struct card *deck, struct card *extras, int type)
renumber = cp_getvar("renumber", CP_BOOL, NULL, 0);
if (type == LS_LOGICAL || type == LS_RUNABLE) {
if (type == LS_LOGICAL || type == LS_RUNNABLE) {
top1:
for (here = deck; here; here = here->nextcard) {
if (renumber)
@ -252,7 +252,7 @@ inp_list(FILE *file, struct card *deck, struct card *extras, int type)
if (here->error)
Xprintf(file, "%s\n", here->error);
}
else if ((*here->line != '*') && (type == LS_RUNABLE)) {
else if ((*here->line != '*') && (type == LS_RUNNABLE)) {
Xprintf(file, "%s\n", upper(here->line));
if (here->error)
Xprintf(file, "%s\n", here->error);
@ -268,7 +268,7 @@ inp_list(FILE *file, struct card *deck, struct card *extras, int type)
if (type == LS_LOGICAL)
Xprintf(file, "%6d : .end\n", i);
else if (type == LS_RUNABLE)
else if (type == LS_RUNNABLE)
Xprintf(file, ".end\n");
} else if ((type == LS_PHYSICAL) || (type == LS_DECK)) {

2
src/include/ngspice/fteinp.h

@ -13,7 +13,7 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
#define LS_LOGICAL 1
#define LS_PHYSICAL 2
#define LS_DECK 3
#define LS_RUNABLE 4
#define LS_RUNNABLE 4
#endif
Loading…
Cancel
Save