From ace932e1b912451c44343e6284088053a3a0f99b Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 31 Dec 2023 13:51:05 +0100 Subject: [PATCH] Patches provided by Carsten Schoenert: Misspellings, File access --- src/frontend/trannoise/FastNorm3.c | 2 +- src/osdi/osdiinit.c | 2 +- src/osdi/osdisetup.c | 4 ++-- src/xspice/icm/digital/d_osc/cfunc.mod | 2 +- src/xspice/icm/digital/d_pwm/cfunc.mod | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontend/trannoise/FastNorm3.c b/src/frontend/trannoise/FastNorm3.c index 28c97fca2..6ad414f5a 100644 --- a/src/frontend/trannoise/FastNorm3.c +++ b/src/frontend/trannoise/FastNorm3.c @@ -92,7 +92,7 @@ c but avoids most of the well-known defects of this type of generator c by, in effect, generating x[n+k] from x[n] as defined by the c sequence above, where k is chosen randomly in 1 ... 128 with the c help of a subsidiary Tauseworth-type generator. -c For the positve integer generator irandm, the less +c For the positive integer generator irandm, the less c significant digits are more random than is usual for a Lehmer c generator. The last n<31 digits do not repeat with a period of 2^n. c This is also true of the unsigned integer generator urandm, but less diff --git a/src/osdi/osdiinit.c b/src/osdi/osdiinit.c index cbfa5cf31..b647de25e 100644 --- a/src/osdi/osdiinit.c +++ b/src/osdi/osdiinit.c @@ -54,7 +54,7 @@ static int write_param_info(IFparm **dst, const OsdiDescriptor *descr, break; default: errRtn = "get_osdi_info"; - errMsg = tprintf("Unkown OSDI type %d for parameter %s!", + errMsg = tprintf("Unknown OSDI type %d for parameter %s!", para->flags & PARA_TY_MASK, para->name[0]); return -1; } diff --git a/src/osdi/osdisetup.c b/src/osdi/osdisetup.c index 4614292a3..77860e21f 100644 --- a/src/osdi/osdisetup.c +++ b/src/osdi/osdisetup.c @@ -43,11 +43,11 @@ static int handle_init_info(OsdiInitInfo info, const OsdiDescriptor *descr) { break; } default: - printf("Unkown OSDO init error code %d!\n", err->code); + printf("Unknown OSDO init error code %d!\n", err->code); } } free(info.errors); - errMsg = tprintf("%i errors occurred during initalization", info.num_errors); + errMsg = tprintf("%i errors occurred during initialization", info.num_errors); return (E_PRIVATE); } diff --git a/src/xspice/icm/digital/d_osc/cfunc.mod b/src/xspice/icm/digital/d_osc/cfunc.mod index e4361e783..8a598bd89 100644 --- a/src/xspice/icm/digital/d_osc/cfunc.mod +++ b/src/xspice/icm/digital/d_osc/cfunc.mod @@ -99,7 +99,7 @@ void cm_d_osc(ARGS) table[i].ctl = PARAM(cntl_array[i]); table[i].freq = PARAM(freq_array[i]); if (table[i].freq <= 0) { - cm_message_printf("Error: frequency %g is not positve, " + cm_message_printf("Error: frequency %g is not positive, " "value replaced by 1e-16.", table[i].freq); table[i].freq = 1.0e-16; diff --git a/src/xspice/icm/digital/d_pwm/cfunc.mod b/src/xspice/icm/digital/d_pwm/cfunc.mod index 908a2b5b3..b3e47fb61 100644 --- a/src/xspice/icm/digital/d_pwm/cfunc.mod +++ b/src/xspice/icm/digital/d_pwm/cfunc.mod @@ -106,7 +106,7 @@ void cm_d_pwm(ARGS) table[i].ctl = PARAM(cntl_array[i]); table[i].dc = PARAM(dc_array[i]); if (table[i].dc <= 0) { - cm_message_printf("Error: duty cycle %g is not positve, " + cm_message_printf("Error: duty cycle %g is not positive, " "value replaced by 0.01.", table[i].dc); table[i].dc = 0.01;