Commit Graph
16346 Commits
Author SHA1 Message Date
Jim Meyering 33faa30817 *** empty log message *** 2003-08-07 08:04:52 +00:00
Jim Meyering 5dfc40658f . 2003-08-07 08:03:12 +00:00
Jim Meyering 0d99fa47ed . 2003-08-07 07:40:58 +00:00
Jim Meyering ca876f123b *** empty log message *** 2003-08-07 07:38:41 +00:00
Jim Meyering 02a569d50e Sync with gnulib (white space change only). 2003-08-07 07:38:25 +00:00
Jim Meyering e3e83a2395 (jm_CHECK_ALL_TYPES): Call gl_TIMESPEC rather
than jm_CHECK_TYPE_STRUCT_TIMESPEC.
2003-08-07 07:38:12 +00:00
Jim Meyering b7e958a36e Sync with gnulib, except also require AC_GNU_SOURCE. 2003-08-07 07:37:51 +00:00
Jim Meyering 73890aec77 New file, taken from gnulib, with support added for __EXTENSIONS__ a la Solaris. 2003-08-07 07:36:41 +00:00
Jim Meyering a5722af878 *** empty log message *** 2003-08-07 06:37:16 +00:00
Jim Meyering 7e7c738d65 (jm_PREREQ_PHYSMEM, jm_PREREQ_STAT): Ignore headers
that are present but cannot be compiled.  This avoids spurious warnings
on Solaris 9 sparc with Forte Developer 7 C 5.4.
2003-08-07 06:37:11 +00:00
Jim Meyering 896f4a1c19 . 2003-08-06 23:10:37 +00:00
Jim Meyering 1f5d2131d2 *** empty log message *** 2003-08-06 23:09:28 +00:00
Jim Meyering 23d06dca01 (jm_MACROS): Require gl_FUNC_FNMATCH_GNU instead of AC_FUNC_ERROR_AT_LINE. 2003-08-06 23:09:24 +00:00
Jim Meyering a54bde8859 New file, from gnulib. 2003-08-06 23:09:10 +00:00
Jim Meyering 5a6401d82e . 2003-08-06 19:36:32 +00:00
Jim Meyering 4550181ae1 *** empty log message *** 2003-08-05 17:11:01 +00:00
Jim Meyering f790a86fde Sync from gnulib. 2003-08-05 17:10:58 +00:00
Jim Meyering 01c8ab7082 . 2003-08-05 07:23:41 +00:00
Jim Meyering 29496816be *** empty log message *** 2003-08-04 08:56:07 +00:00
Jim Meyering cf572dd1d0 (main): Use unsigned int instead of int for `nsigs'
and for the indices to iterate through nsigs.
2003-08-04 08:55:44 +00:00
Jim Meyering 58a90860fc *** empty log message *** 2003-08-03 10:28:23 +00:00
Jim Meyering c009c921e1 *** empty log message *** 2003-08-03 10:28:14 +00:00
Jim Meyering 801362fc36 Minor code cleanups, mostly to use more accurate
types and to remove unnecessary casts.
(min, max): Remove.  All uses changed to MIN and MAX.
(hard_lc_collate, hard_LC_TIME, struct buffer.eof, struct
keyfield.skipsblanks, struct keyfield.skipeblanks, struct
keyfield.numeric, struct keyfield.general_numeric, struct
keyfield.month, struct keyfield.reverse, reverse, unique,
have_read_stdin): Now bool, not int.  All uses changed.
(eolchar): Now char, not int.
(struct keyfield.ignore): Now bool const *, not int *.
(struct keyfield.translate): Now char const *, not char *.
(struct month.name): Likewise.
(blanks, nonprinting, nondictionary): Now bool[], not int[].
(cleanup, inittables, keycompare, check, mergefps, first_same_file,
check, sort, main): Use const * pointers when possible.
(month_cmp): Rewrite to avoid casts.
(inittables): Initialize tables unconditionally, to avoid branches.
(fillbuf): Return bool, not int.  All uses changed.
(fillbuf, keycompare, new_key, main):
Use SIZE_MAX rather than (size_t) -1.
(trailing_blanks): Renamed from trim_trailing_blanks.
Return the number of blanks to trim.  All uses changed.
(getmonth): Use trailing_blanks rather than open code.
(keycompare): Do not cast char * to unsigned char *; not needed.
CMP_WITH_IGNORE converts args to UCHAR, so no need to convert it
ourselves.
(compare, main): Use | rather than || to avoid jumps.
Replace "diff = NONZERO (alen)" with "diff = 1", since alen must
be nonzero there.
(check, first_same_file, sort, main):
Use bool instead of int local vars when possible.
(check): Merge the old 'checkfp' and 'check' into a single function,
that returns a boolean (true if the file was ordered).
All uses changed.
(main): Use int instead of unsigned for iterating through nsigs.
Rename local var "posix_pedantic" to "posixly_correct".
2003-08-03 10:28:10 +00:00
Jim Meyering a875d6bc23 *** empty log message *** 2003-08-03 10:20:35 +00:00
Jim Meyering 016c2ea295 (_Bool): Use a #define, not a typedef. 2003-08-03 10:20:32 +00:00
Jim Meyering c36e601b67 *** empty log message *** 2003-08-02 21:16:04 +00:00
Jim Meyering 9070de3ea2 *** empty log message *** 2003-08-02 20:39:13 +00:00
Jim Meyering 846a7a53eb [!NICE_PRIORITY]: Include <time.h> before <sys/resource.h>
to avoid compilation error on Ultrix. Reported by Christian Krackowizer.
2003-08-02 20:39:06 +00:00
Jim Meyering 4c3962cc7a *** empty log message *** 2003-08-02 20:07:57 +00:00
Jim Meyering fa446c2243 . 2003-08-02 20:07:12 +00:00
Jim Meyering 445b9e169b *** empty log message *** 2003-08-02 19:53:59 +00:00
Jim Meyering aca28ca9ac (cut_fields): Don't read again after encountering EOF.
E.g., `cut -f2' would do so.
2003-08-02 19:53:52 +00:00
Jim Meyering 40944ce6ce Add a test for the above fix.
`cut -f2' would read after EOF.
2003-08-02 19:41:28 +00:00
Jim Meyering ca78a418b2 *** empty log message *** 2003-08-02 19:40:48 +00:00
Jim Meyering f9971e4c43 . 2003-08-02 06:27:30 +00:00
Jim Meyering 93f9ffc614 Document in TODO Paul's desire to make sort faster (and how he
was foiled this time around).

from Paul Eggert.
2003-08-02 06:27:13 +00:00
Jim Meyering 054819d791 (sortlines): Add description and references.
From Paul Eggert.
2003-08-02 06:25:50 +00:00
Jim Meyering 2300c75a6d *** empty log message *** 2003-08-01 22:40:58 +00:00
Jim Meyering 187adbe0b1 *** empty log message *** 2003-08-01 22:40:16 +00:00
Jim Meyering 37eb1bb333 *** empty log message *** 2003-08-01 22:38:50 +00:00
Jim Meyering cd5b47646f (General date syntax): Add --rfc-2822 option to GNU date. 2003-08-01 22:38:36 +00:00
Jim Meyering 6f2002699e (Options for date): Fix a typo in format: it's now %d not %_d. Add URLs.
(Time directives, Options for date, Examples of date): Add --rfc-2822
option to GNU date.
2003-08-01 22:37:20 +00:00
Jim Meyering 953ab84d68 (long_options, usage, main): Add --rfc-2822 option to GNU date. 2003-08-01 22:36:34 +00:00
Jim Meyering 832557df66 Add --rfc-2822 option to GNU date. 2003-08-01 22:35:57 +00:00
Jim Meyering 572d582d8d Ensure that $? is 0 for the final `exit 0'.
Otherwise, with at least the /bin/sh from HPUX 10.20,
the trap code would end up converting that to exit 1 and thus an
unexpected test failure.  Reported by Christian Krackowizer.
2003-08-01 22:33:04 +00:00
Jim Meyering 77b694e03a *** empty log message *** 2003-08-01 22:32:47 +00:00
Jim Meyering f9bbf80f93 (TESTS_ENVIRONMENT): Set PATH so that
the tests in help-version will use the just-built binaries.
2003-08-01 22:32:41 +00:00
Jim Meyering 8355cbbdfc *** empty log message *** 2003-08-01 06:44:33 +00:00
Jim Meyering 09df41c60f Do not include bumpalloc.h.
(WORD_TABLE): New member alloc.
(ALLOC_NEW_WORD): Remove.
(occurs_alloc): New var.
(digest_word_file, find_occurs_in_text): Check for arithmetic
overflow when computing table size.  Use xrealloc rather than
bumpalloc primitives.
2003-08-01 06:44:28 +00:00
Jim Meyering 7f18ea73ce *** empty log message *** 2003-08-01 06:39:01 +00:00