summaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-03-29 20:05:34 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-03-29 20:05:34 -0700
commitf87d813b6339efe1f7b96028cce0df2d96bae507 (patch)
treed065882cba2cce83dbaa3afd517665c7bf6f122d /parser.c
parent32572f8c5c2a25cae3686762b29455e2c6e1a2ce (diff)
downloadtxr-f87d813b6339efe1f7b96028cce0df2d96bae507.tar.gz
txr-f87d813b6339efe1f7b96028cce0df2d96bae507.tar.bz2
txr-f87d813b6339efe1f7b96028cce0df2d96bae507.zip
Replace all stray C style casts with macros.
* gc.c (gc_report_copies): C style casts found in this function. * linenoise.c (strip_qual, convert, coerce): Copy and paste the macros here. (record_undo, compare_completions, lino_add_completion, history_search, ab_append, sync_data_to_buf, refresh_singleline, screen_rows, refresh_multiline, find_nearest_paren, paren_jump, yank_sel, edit_move_matching_paren, edit, lino_make, lino_copy, lino_hist_add, lino_hist_set_max_len): C style casts replaced. * mpi/mpi-types.h (MP_DIGIT_BIT, MP_DIGIT_MAX, MP_WORD_BIT, MP_WORD_MAX, RADIX): C style casts replaced. * mpi/mpi.c (convert, coerce): Copy and paste the macros here. (mp_init_size, mp_init_copy, mp_copy, mp_set_int, mp_div_d, mp_bit, mp_to_double, mp_to_signed_bin, mp_to_unsigned_bin, mp_to_unsigned_buf, mp_toradix_case, mp_grow, s_mp_set_bit, s_mp_mod_2d, s_mp_mul_2d, s_mp_div_2d, s_mp_mul_d, s_mp_mul, s_mp_sqr, s_mp_div, s_mp_2expt, s_mp_todigit): C style casts replaced. * mpi/mplogic (convert): Macro copy and pasted here. (mpl_num_set, mpl_num_clear): C style casts replaced. * parser.c (provide_completions): Likewise. * signal.c (small_sigfillset): Likewise. * stream.c (stdio_truncate, test_set_indent_mode, set_indent_mode): Likewise.
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.c b/parser.c
index b1b4b4d8..012b4da1 100644
--- a/parser.c
+++ b/parser.c
@@ -501,7 +501,7 @@ static void provide_completions(const char *data,
if (!ptr)
return;
- while ((isalnum((unsigned char) *ptr) || strchr(gly, *ptr)) &&
+ while ((isalnum(convert(unsigned char, *ptr)) || strchr(gly, *ptr)) &&
(sym = ptr) && ptr > data)
ptr--;
@@ -516,7 +516,7 @@ static void provide_completions(const char *data,
} else {
ptr--;
- while ((isalnum((unsigned char) *ptr) || strchr(gly, *ptr)) &&
+ while ((isalnum(convert(unsigned char, *ptr)) || strchr(gly, *ptr)) &&
(pkg = ptr) && ptr > data)
ptr--;