to invalid (and reverse sense) to avoid conflict with the
macro definition in /usr/include/locale.h on SunOS 4.1.3.
static int
decode_field_spec (const char *s, int *file_index, int *field_index)
{
- int valid = 0;
+ int invalid = 1;
/* The first character must be 0, 1, or 2. */
switch (s[0])
{
*file_index = 0;
/* Leave *field_index undefined. */
- valid = 1;
+ invalid = 0;
}
else
{
*file_index = s[0] - '0';
/* Convert to a zero-based index. */
*field_index = (int) tmp_long - 1;
- valid = 1;
+ invalid = 0;
}
}
break;
error (0, 0, _("invalid file number in field spec: `%s'"), s);
break;
}
- return !valid;
+ return invalid;
}
/* Add the comma or blank separated field spec(s) in STR to `outlist'.