X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/bfed046df118533fc599449d48e59a3100e6439d..c5e89be20a3feba9c67be6855b1dbdc6d8ae5ce2:/src/tparam.c diff --git a/src/tparam.c b/src/tparam.c index 538f26c83b..02047db209 100644 --- a/src/tparam.c +++ b/src/tparam.c @@ -79,14 +79,14 @@ tparam1 (const char *string, char *outstring, int len, register int tem; int *old_argp = argp; /* can move */ int *fixed_argp = argp; /* never moves */ - bool explicit_param_p = 0; /* set by %p */ + bool explicit_param_p = false; /* set by %p */ ptrdiff_t doleft = 0; ptrdiff_t doup = 0; ptrdiff_t append_len = 0; outend = outstring + len; - while (1) + while (true) { /* If the buffer might be too short, make it bigger. */ while (outend - op - append_len <= 5) @@ -115,7 +115,7 @@ tparam1 (const char *string, char *outstring, int len, { c = *p++; if (explicit_param_p) - explicit_param_p = 0; + explicit_param_p = false; else tem = *argp; switch (c) @@ -142,7 +142,7 @@ tparam1 (const char *string, char *outstring, int len, break; case 'p': /* %pN means use param N for next subst. */ tem = fixed_argp[(*p++) - '1']; - explicit_param_p = 1; + explicit_param_p = true; break; case 'C': /* For c-100: print quotient of value by 96, if nonzero,