}
}
#define SEQ(str,cont,cs) \
- {str,~(63<<(6*((cont&~RO)))),(cs)<<(6*((cont&~RO))),(cont),(cs)}
+ {str,~(63<<(6*(((cont)&~RO)))),(cs)<<(6*(((cont)&~RO))),(cont),(cs)}
/*
* Compound text defines restrictions on which container can take
* which character sets. Things labelled `left half of' can only go
void (*emit)(void *ctx, long int output), void *emitctx)
{
const struct sbcs_data *sd = charset->data;
+ long int ret;
UNUSEDARG(state);
if (input_chr == -1)
return TRUE; /* stateless; no cleanup required */
- emit(emitctx, sbcs_from_unicode(sd, input_chr));
+ ret = sbcs_from_unicode(sd, input_chr);
+ if (ret == ERROR)
+ return FALSE;
+
+ emit(emitctx, ret);
+ return TRUE;
}