summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-03-22(du_files): Return bool, rather than int.Jim Meyering
(main): Call readtokens0_free.
2004-03-22Include "readtokens0.h" rather than "readtokens.h".Jim Meyering
(main): Use readtoken0 functions rather than readtokens. Don't use errno when diagnosing readtokens0 failure.
2004-03-22(libfetish_a_SOURCES): Add readtokens0.c and readtokens0.hJim Meyering
2004-03-22*** empty log message ***Jim Meyering
2004-03-21*** empty log message ***Jim Meyering
2004-03-21(ds_free): Plug a small leak.Jim Meyering
2004-03-21*** empty log message ***Jim Meyering
2004-03-21*** empty log message ***Jim Meyering
2004-03-21(readtoken): Don't leak 64 bytes when reading an empty input stream.Jim Meyering
2004-03-21Also test with a non-regular file:Jim Meyering
--files0-from=/dev/null
2004-03-21(main): whoops. don't use errno for this diagnostic:Jim Meyering
_("no files specified in %s"),
2004-03-21Add this comment:Jim Meyering
# -*- perl -*-
2004-03-21.Jim Meyering
2004-03-21*** empty log message ***Jim Meyering
2004-03-21Include <stdbool.h>.Jim Meyering
(readtoken): Use `size_t' rather than int/long. All callers adjusted. Use `bool' rather than `int' where appropriate. Use memset rather than an explicit loop. Use x2nrealloc rather than xrealloc. Allow the use of `\0' as a delimiter. (readtokens): Likewise.
2004-03-21(readtoken, readtokens): Update prototypes.Jim Meyering
2004-03-21*** empty log message ***Jim Meyering
2004-03-21(du invocation): Document new option: --file0-from=F.Jim Meyering
2004-03-21*** empty log message ***Jim Meyering
2004-03-21Fix typo in comment.Jim Meyering
2004-03-21*** empty log message ***Jim Meyering
2004-03-21 * NEWS: du accepts a new option --from0-file=FILE, where FILEJim Meyering
contains a list of NUL-separated file names.
2004-03-21(tsort): Reflect changes in use of readtoken.Jim Meyering
2004-03-21(do_stdin): Reflect changes in use of readtoken.Jim Meyering
2004-03-21(TESTS): Add files0-from.Jim Meyering
2004-03-21New tests, for --files0-from-F option.Jim Meyering
2004-03-21du accepts a new option --from0-file=FILE, where FILE containsJim Meyering
a list of NUL-separated file names. Include "readtokens.h". (usage): Describe the new option, and adjust the `Usage': with this option, no FILE may be specified on the command line. (main): Handle the new option.
2004-03-18.Jim Meyering
2004-03-17.Jim Meyering
2004-03-17(test_vector): New tests epoch, ns-10, ns-max32, ns-relative.Jim Meyering
2004-03-17*** empty log message ***Jim Meyering
2004-03-17*** empty log message ***Jim Meyering
2004-03-17(General date syntax, Time of day items): Likewise.Jim Meyering
Add copyright notice. Change getdate to get_date when talking about the function name. (Seconds since the Epoch): New section, containing the time_t info moved from Date input formats section, along with new info about the @ syntax. Mention negative time stamps, fractional time stamps, and leap seconds. (General date syntax): Modernize examples a bit to reflect new features. (General date syntax, Relative items in date strings): Use ' rather than " to quote formats. (Time of day items): Add an example with fractional seconds. Describe fractional-second syntax.
2004-03-17(touch invocation):Jim Meyering
Describe use of fractional seconds. (date invocation, Options for date): Likewise. (date invocation): Mention effect of LC_TIME. (Options for date): Describe new --iso-8601=ns option.
2004-03-17(touch_LDADD): New macro, since `touch' now needs clock_gettime.Jim Meyering
2004-03-17*** empty log message ***Jim Meyering
2004-03-17(gl_GETDATE): Remove time-related stuff.Jim Meyering
Require AM_STDBOOL_H and gl_TIMESPEC instead. Require gl_CLOCK_TIME.
2004-03-17(gl_CLOCK_TIME): Require AC_GNU_SOURCE.Jim Meyering
2004-03-17*** empty log message ***Jim Meyering
2004-03-17*** empty log message ***Jim Meyering
2004-03-17Include "getdate.h" first, as we can nowJim Meyering
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.
2004-03-17Include stdbool.h, and timespec.h instead ofJim Meyering
the usual <time.h> dance. (get_date): Change signature to support fractional time stamps. All callers changed.
2004-03-17(enum Time_spec): New enum TIME_SPEC_NS.Jim Meyering
(time_spec_string, time_spec, show_date): Support it. (usage): Remove description of -ITIMESPEC, as it's obsolete and confusing. Mention --iso-8601=ns. (batch_convert): getline returns ssize_t, not int.
2004-03-17(newtime): Now an array of two timespecs, oneJim Meyering
for access and one for modification. (ref_stats): Remove. (get_reldate): Use get_date's parameter profile. (touch, main): Adjust to above changes. (main): Work even if tm_year == INT_MAX (so long as long int is wider). Use gettime instead of gettimeofday, for new get_date signature.
2004-03-15*** empty log message ***Jim Meyering
2004-03-15.Jim Meyering
2004-03-15*** empty log message ***Jim Meyering
2004-03-15(date invocation): Add missing `C' to %[...] rangeJim Meyering
in the `Date directives:: ...' menu entry. From Bob Proulx.
2004-03-15*** empty log message ***Jim Meyering
2004-03-15(alpha beta major): `Make' the emit_upload_commandsJim Meyering
target before updating $(prev_version_file).