aboutsummaryrefslogtreecommitdiffstats
path: root/src/UCAux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/UCAux.c')
-rw-r--r--src/UCAux.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/UCAux.c b/src/UCAux.c
index bf4ab8b0..dd8e9cb3 100644
--- a/src/UCAux.c
+++ b/src/UCAux.c
@@ -172,7 +172,7 @@ PUBLIC void UCSetTransParams ARGS5(
** The "transparent" display character set is a
** "super raw mode". - FM
*/
- pT->transp = (!strcmp(p_in->MIMEname, "x-transparent") ||
+ pT->transp = (BOOL) (!strcmp(p_in->MIMEname, "x-transparent") ||
!strcmp(p_out->MIMEname, "x-transparent"));
if (pT->transp) {
@@ -186,8 +186,8 @@ PUBLIC void UCSetTransParams ARGS5(
pT->use_raw_char_in = TRUE;
pT->strip_raw_char_in = FALSE;
pT->pass_160_173_raw = TRUE;
- pT->repl_translated_C0 = (p_out->enc == UCT_ENC_8BIT_C0);
- pT->trans_C0_to_uni = (p_in->enc == UCT_ENC_8BIT_C0 ||
+ pT->repl_translated_C0 = (BOOL) (p_out->enc == UCT_ENC_8BIT_C0);
+ pT->trans_C0_to_uni = (BOOL) (p_in->enc == UCT_ENC_8BIT_C0 ||
p_out->enc == UCT_ENC_8BIT_C0);
} else {
/*
@@ -199,13 +199,13 @@ PUBLIC void UCSetTransParams ARGS5(
** Set this element if we want to treat
** the input as CJK. - FM
*/
- pT->do_cjk = ((p_in->enc == UCT_ENC_CJK) && (HTCJK != NOCJK));
+ pT->do_cjk = (BOOL) ((p_in->enc == UCT_ENC_CJK) && (HTCJK != NOCJK));
/*
** Set these elements based on whether
** we are dealing with UTF-8. - FM
*/
- pT->decode_utf8 = (p_in->enc == UCT_ENC_UTF8);
- pT->output_utf8 = (p_out->enc == UCT_ENC_UTF8);
+ pT->decode_utf8 = (BOOL) (p_in->enc == UCT_ENC_UTF8);
+ pT->output_utf8 = (BOOL) (p_out->enc == UCT_ENC_UTF8);
if (pT->do_cjk) {
/*
** Set up the structure for a CJK input with
@@ -227,7 +227,7 @@ PUBLIC void UCSetTransParams ARGS5(
** equivalent to them, i.e., if we have UCS without
** having to do a table translation.
*/
- intm_ucs = (cs_in == LATIN1 || pT->decode_utf8 ||
+ intm_ucs = (BOOL) (cs_in == LATIN1 || pT->decode_utf8 ||
(p_in->codepoints &
(UCT_CP_SUBSETOF_LAT1|UCT_CP_SUBSETOF_UCS2)));
/*
@@ -237,7 +237,7 @@ PUBLIC void UCSetTransParams ARGS5(
** that use the transformation structure, so it is
** treated as already Unicode here.
*/
- pT->trans_to_uni = (!intm_ucs &&
+ pT->trans_to_uni = (BOOL) (!intm_ucs &&
UCCanUniTranslateFrom(cs_in));
/*
** We set this if we are translating to Unicode and
@@ -245,12 +245,12 @@ PUBLIC void UCSetTransParams ARGS5(
** fact are encoding octets for the input charset
** (presently, this applies to VISCII). - FM
*/
- pT->trans_C0_to_uni = (pT->trans_to_uni &&
+ pT->trans_C0_to_uni = (BOOL) (pT->trans_to_uni &&
p_in->enc == UCT_ENC_8BIT_C0);
/*
** We set this, presently, for VISCII. - FM
*/
- pT->repl_translated_C0 = (p_out->enc == UCT_ENC_8BIT_C0);
+ pT->repl_translated_C0 = (BOOL) (p_out->enc == UCT_ENC_8BIT_C0);
/*
** Currently unused for any charset combination.
** Should always be FALSE
@@ -260,7 +260,7 @@ PUBLIC void UCSetTransParams ARGS5(
** use_ucs should be set TRUE if we have or will create
** Unicode values for input octets or UTF multibytes. - FM
*/
- use_ucs = (intm_ucs || pT->trans_to_uni);
+ use_ucs = (BOOL) (intm_ucs || pT->trans_to_uni);
/*
** This is set TRUE if use_ucs was set FALSE. It is
** complementary to the HTPassEightBitRaw flag, which
@@ -268,19 +268,19 @@ PUBLIC void UCSetTransParams ARGS5(
** setting in relation to the current Display Character
** Set. - FM
*/
- pT->do_8bitraw = (!use_ucs);
+ pT->do_8bitraw = (BOOL) (!use_ucs);
/*
** This is set TRUE when 160 and 173 should not be
** treated as nbsp and shy, respectively. - FM
*/
- pT->pass_160_173_raw = (!use_ucs &&
+ pT->pass_160_173_raw = (BOOL) (!use_ucs &&
!(p_in->like8859 & UCT_R_8859SPECL));
/*
** This is set when the input and output charsets match,
** and they are not ones which should go through a Unicode
** translation process anyway. - FM
*/
- pT->use_raw_char_in = (!pT->output_utf8 &&
+ pT->use_raw_char_in = (BOOL) (!pT->output_utf8 &&
cs_in == cs_out &&
!pT->trans_C0_to_uni);
/*
@@ -292,7 +292,7 @@ PUBLIC void UCSetTransParams ARGS5(
** above, but also on HTPassEightBitRaw in any functions
** which use the transformation structure.. - FM
*/
- pT->trans_from_uni = (use_ucs && !pT->do_8bitraw &&
+ pT->trans_from_uni = (BOOL) (use_ucs && !pT->do_8bitraw &&
!pT->use_raw_char_in &&
UCCanTranslateUniTo(cs_out));
}