From ae221a70c2d4ae7168d4aedf3f0cb3c22bb0bb25 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 15 Apr 2022 10:52:56 +0200 Subject: [PATCH] Remove a typo: runable --> runnable --- src/frontend/inp.c | 12 ++++++------ src/include/ngspice/fteinp.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 1c2babe6b..43e2dc5e5 100644 --- a/src/frontend/inp.c +++ b/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)) { diff --git a/src/include/ngspice/fteinp.h b/src/include/ngspice/fteinp.h index 07db884b0..490829043 100644 --- a/src/include/ngspice/fteinp.h +++ b/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