summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2004-04-04Sync from gnulib.Jim Meyering
2004-04-04.Jim Meyering
2004-04-04.Jim Meyering
2004-04-04Sync from gnulib.Jim Meyering
2004-04-04New files, from gnulibJim Meyering
2004-04-04*** empty log message ***Jim Meyering
2004-04-02Add strdup.h.Jim Meyering
2004-04-02whoops. add strdup.h, not xstrdup.h.Jim Meyering
2004-04-02(libfetish_a_SOURCES): Add allocsa.c, allocsa.h and strdup.h.Jim Meyering
2004-03-31.Jim Meyering
2004-03-30*** empty log message ***Jim Meyering
2004-03-30Merge changes from emacs (via gnulib).Jim Meyering
2004-03-29*** empty log message ***Jim Meyering
2004-03-29[HAVE_UNISTD_H]: Include <unistd.h>, for resolvepath declaration.Jim Meyering
2004-03-29Include dirfd.h, for dirfd.Jim Meyering
2004-03-24*** empty log message ***Jim Meyering
2004-03-24(humblock): Support BLOCKSIZE envvar, as well as BLOCK_SIZE.Jim Meyering
2004-03-24.Jim Meyering
2004-03-24*** empty log message ***Jim Meyering
2004-03-24(readtokens0): Return true on success ratherJim Meyering
than on failure. All callers changed. This also happens to fix a portability bug on pre-C99 hosts, where (bool) INTEGER sometimes returns false even when INTEGER is nonzero.
2004-03-23.Jim Meyering
2004-03-23Remove space(s) before TAB.Jim Meyering
2004-03-23whoops: getopt_int.h, not getopt_int.c.Jim Meyering
2004-03-23Sync from gnulib.Jim Meyering
2004-03-23.Jim Meyering
2004-03-23New file, from gnulib.Jim Meyering
2004-03-23(libfetish_a_SOURCES): Add getopt_int.h.Jim Meyering
2004-03-23*** empty log message ***Jim Meyering
2004-03-23Sync from gnulib.Jim Meyering
* mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
2004-03-23Sync from gnulib.Jim Meyering
* mbswidth.h: Include <wchar.h> only if HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have <wchar.h>.
2004-03-22.Jim Meyering
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*** empty log message ***Jim Meyering
2004-03-21(readtoken): Don't leak 64 bytes when reading an empty input stream.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-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-15*** empty log message ***Jim Meyering
2004-03-15`date --date="21:04 +0100" +%S' would print the seconds valueJim Meyering
from the current time, rather than `00'. For a date string like `10:23 +0100', set the number of seconds to zero. Reported by Marc Haber.
2004-03-11.Jim Meyering
2004-03-04.Jim Meyering
2004-03-04*** empty log message ***Jim Meyering
2004-03-04(getloadavg): Use `true', not `1'.Jim Meyering
2004-03-04*** empty log message ***Jim Meyering
2004-03-04(set_cloexec_flag) [ ! (F_GETFD && F_SETFD)]: Return true, not false.Jim Meyering