The function was used much more than the macro anyway.
if (conversion == (iconv_t) -1)
{
- SET_SUBTASK_ERROR (RECODE_SYSTEM_ERROR, subtask);
+ recode_if_nogo (RECODE_SYSTEM_ERROR, subtask);
SUBTASK_RETURN (subtask);
}
static bool
internal_iconv (RECODE_SUBTASK subtask)
{
- SET_SUBTASK_ERROR (RECODE_USER_ERROR, subtask);
+ recode_if_nogo (RECODE_USER_ERROR, subtask);
SUBTASK_RETURN (subtask);
}
typedef const struct recode_alias * RECODE_CONST_ALIAS;
typedef const struct recode_task * RECODE_CONST_TASK;
-/*---------------------------------------------------------.
-| Maintain maximum of ERROR and current error in SUBTASK. |
-`---------------------------------------------------------*/
-
-#define SET_SUBTASK_ERROR(Error, Subtask) \
- recode_if_nogo (Error, Subtask)
-
/*--------------------------------------------------------------------------.
| Return from SUBTASK, with `false' if the failure level has been reached. |
`--------------------------------------------------------------------------*/
character2 = get_byte (subtask);
if (character2 == EOF)
{
- SET_SUBTASK_ERROR (RECODE_INVALID_INPUT, subtask);
+ recode_if_nogo (RECODE_INVALID_INPUT, subtask);
return false;
}
character = get_byte (subtask);
if (character == EOF)
{
- SET_SUBTASK_ERROR (RECODE_INVALID_INPUT, subtask);
+ recode_if_nogo (RECODE_INVALID_INPUT, subtask);
return false;
}
chunk |= (BIT_MASK (8) & character) << 16;
character = get_byte (subtask);
if (character == EOF)
{
- SET_SUBTASK_ERROR (RECODE_INVALID_INPUT, subtask);
+ recode_if_nogo (RECODE_INVALID_INPUT, subtask);
return false;
}
chunk |= (BIT_MASK (8) & character) << 8;
character = get_byte (subtask);
if (character == EOF)
{
- SET_SUBTASK_ERROR (RECODE_INVALID_INPUT, subtask);
+ recode_if_nogo (RECODE_INVALID_INPUT, subtask);
return false;
}
chunk |= BIT_MASK (8) & character;