summaryrefslogtreecommitdiff
path: root/src/tparam.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-04-19 13:13:13 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-04-19 13:13:52 -0700
commit62e170072e6000b30c37792227dc34e71a31d797 (patch)
tree6a97f0018e883b3daa0ca6d0f1f8f1d29ad89d17 /src/tparam.c
parentb5b0e0500eb6fac1b0b2e9ca4da08826225b010b (diff)
downloademacs-62e170072e6000b30c37792227dc34e71a31d797.tar.gz
Use bool for boolean in textprop.c, undo.c
* src/textprop.c (soft, hard): Now constants instead of macros. (validate_plist): Rewrite to avoid need for boolean local. (interval_has_all_properties, interval_has_some_properties) (interval_has_some_properties_list, add_properties) (remove_properties, get_char_property_and_overlay) (Fnext_single_char_property_change) (Fprevious_single_char_property_change, add_text_properties_1) (Fremove_text_properties, Fremove_list_of_text_properties) (copy_text_properties): * src/tparam.c (tparam1): * src/undo.c (record_change, record_property_change) (syms_of_undo): Use 'true' and 'false' for booleans.
Diffstat (limited to 'src/tparam.c')
-rw-r--r--src/tparam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tparam.c b/src/tparam.c
index 538f26c83b6..02047db2095 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,