TW_SUCC is a macro for the bit-mask 0x0040. TW_YES, a vague name, was
the same value. TW_NO was 0, and unused by the code. Ditch both those
as TW_SUCC is sufficient for setting and testing. Alter its comment to
make clear it means parsing was successful.
#define TW_DST 0x0010 /* daylight savings time */
#define TW_ZONE 0x0020 /* use numeric timezones only */
-#define TW_SUCC 0x0040 /* whether parsing was successful */
-#define TW_YES 0x0040 /* yes, found */
-#define TW_NO 0x0000 /* no, not found */
+#define TW_SUCC 0x0040 /* Parsing was successful. */
#define dtwszone(tw) dtimezone (tw->tw_zone, tw->tw_flags)
#define SETYEAR() { tw.tw_year = atoi(cp); \
SKIPD(); }
#define SETDAY() { tw.tw_mday = atoi(cp); \
- tw.tw_flags |= TW_YES; \
+ tw.tw_flags |= TW_SUCC; \
SKIPD(); }
#define SETTIME() { tw.tw_hour = atoi(cp); \
cp += 2; \