diff options
author | Jim Meyering <jim@meyering.net> | 2004-03-17 10:09:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-03-17 10:09:16 +0000 |
commit | bf3bf1462ee6ad1c0a0fe9abe4ad385a4ac91dd6 (patch) | |
tree | 8d1eba7ea0975943fa97171503ec35588fb9c4fd /lib/ChangeLog | |
parent | aa11f812a2bff71088a284e072c0141c6c7044b4 (diff) | |
download | coreutils-bf3bf1462ee6ad1c0a0fe9abe4ad385a4ac91dd6.tar.xz |
Include "getdate.h" first, as we can now
assume C89 and don't need to worry about 'const'.
Similarly, include "unlocked-io.h" near start, not in middle.
Include <limits.h>.
(textint.value): Use long int rather than int.
(textint.digits): Use size_t rather than int.
(BILLION, LOG10_BILLION): New constants.
(parser_control): New member rel_ns. Members day_ordinal,
time_zone, month, day, hour, minutes, rel_year, rel_month,
rel_day, rel_hour, rel_minutes, rel_seconds
are now long int, not int. Member seconds is now struct timespec,
not int. New member timespec_seen. Members dates_seen, days_seen,
local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
not int.
(%union.intval): Now long int, not int.
New member timespec.
(tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
(seconds, signed_seconds, unsigned_seconds): New nonterminals.
(spec): Now is a timespec or an item list.
(timespec, items): New nonterminals.
(time, rel, relunit, number, get_date):
Add support for fractional seconds.
(time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
(gmtime, localtime, mktime): Remove decls; not needed with C89.
(to_hour): First arg is now long int, not int.
(to_year): Returns long int, not int.
Don't treat year -70 like 70.
(tm_diff): Returns long int, not int.
(lookup_word): Use bool instead of int when appropriate.
(yylex): Use size_t for count, not int.
Detect overflow when parsing large integer constants.
Add support for fractions.
(get_date): Make pointers 'const' if possible.
Use more-portable code to detect integer overflow.
(main) [TEST]: Adjust to above changes. Test for localtime failure.
Don't use ctime; it's not reliable if the year has >4 digits.
Diffstat (limited to 'lib/ChangeLog')
0 files changed, 0 insertions, 0 deletions