Commit Graph
24019 Commits
Author SHA1 Message Date
Jim Meyering 1442403a5d (main): Explain why we reopen stdin for write-only access. 2005-08-12 08:25:52 +00:00
Jim Meyering 19b17d2ce6 *** empty log message *** 2005-08-12 08:22:50 +00:00
Jim Meyering 9a3ebcb54d (long_time_expected_width): Don't test for failed localtime.
That cannot happen when the result date's year is in range.
Add an assertion instead.
2005-08-12 08:22:47 +00:00
Jim Meyering 3623a168c4 *** empty log message *** 2005-08-12 08:18:25 +00:00
Jim Meyering 501d8ffe81 (sort_found_occurs, digest_word_file): Likewise.
(alloc_and_compile_regex): Likewise.
2005-08-12 08:18:18 +00:00
Jim Meyering 585c8e075b (sort_files): Use cleaner sizeof *VAR_NAME' rather than sizeof (TYPE_NAME)'. 2005-08-12 08:17:54 +00:00
Jim Meyering bbef1a2f19 *** empty log message *** 2005-08-12 08:08:04 +00:00
Jim Meyering 53a9b25dc2 Test `!defined HAVE_MBSTATE_T' rather than
`defined mbstate_t' to detect missing support for mbstate_t.
The latter didn't work for HP-UX 11.23.
2005-08-12 08:08:00 +00:00
Jim Meyering 68b0358b66 *** empty log message *** 2005-08-12 08:06:56 +00:00
Jim Meyering f6ab92093a Add bulletproofing in case stdin is closed.
(have_read_stdin): Remove global variable.
(dc_parse_stream): Always use stdin (freopen, if needed) rather
than sometimes using fopen to get a new file descriptor.
Call fclose unconditionally.
(main): Don't close stdin here.  If needed, now it's already done
by dc_parse_stream.
2005-08-12 08:06:28 +00:00
Jim Meyering 75ae174b6a *** empty log message *** 2005-08-12 07:57:16 +00:00
Jim Meyering 5f646f5315 (dc_parse_file): Remove comment about now-removed OPENOPTS. 2005-08-12 07:45:29 +00:00
Jim Meyering c0c63502f0 *** empty log message *** 2005-08-12 07:29:59 +00:00
Jim Meyering a370bc0aff (main): Cosmetic: use X2REALLOC rather than x2realloc. 2005-08-12 07:29:51 +00:00
Jim Meyering 8c418c480c (fold_file): Cosmetic: use X2REALLOC rather than x2realloc. 2005-08-12 07:29:38 +00:00
Jim Meyering 0b08c38152 Cosmetic: use X2NREALLOC (only two arguments) rather than x2nrealloc (with three). 2005-08-12 07:16:25 +00:00
Jim Meyering 6f7fd1a866 *** empty log message *** 2005-08-12 07:15:37 +00:00
Jim Meyering aa830a0526 *** empty log message *** 2005-08-12 07:10:33 +00:00
Jim Meyering e39102faca adjust long lines 2005-08-12 07:10:22 +00:00
Jim Meyering bdb22d1235 (main): Cosmetic: use '\0' in place of 0. 2005-08-12 07:09:47 +00:00
Jim Meyering a93af329ba . 2005-08-12 06:54:24 +00:00
Jim Meyering dfc27ade53 *** empty log message *** 2005-08-12 06:50:29 +00:00
Jim Meyering 74b0f6edde (cp invocation, mv invocation): Remove square
brackets in --reply=[HOW].  Reported by Oscar Liljeblad.
2005-08-12 06:49:48 +00:00
Jim Meyering 0508157932 . 2005-08-02 21:15:19 +00:00
Jim Meyering ef1fad923f Include "xanstrftime.h".
(show_date): Use xanstrftime instead of open-coding it.
2005-08-02 20:53:32 +00:00
Jim Meyering a930898d64 *** empty log message *** 2005-08-02 20:52:49 +00:00
Jim Meyering 7a44d1f860 Include "xanstrftime.h".
(show_date): Use xanstrftime instead of open-coding it.
2005-08-02 20:52:44 +00:00
Jim Meyering 959af4cc75 *** empty log message *** 2005-08-02 20:49:08 +00:00
Jim Meyering 22f8ee8ad1 Require gl_FUNC_XANSTRFTIME. 2005-08-02 20:48:58 +00:00
Jim Meyering 309ee82143 *** empty log message *** 2005-08-02 20:48:15 +00:00
Jim Meyering c5739dcf8e *** empty log message *** 2005-08-02 20:47:46 +00:00
Jim Meyering 8822b68f9e new files 2005-08-02 20:47:37 +00:00
Jim Meyering e568ad3e45 *** empty log message *** 2005-08-02 20:44:46 +00:00
Jim Meyering eed7b13805 (show_date): Remove now-unnecessary code that
treated an empty format string as a special case.
2005-08-02 20:44:38 +00:00
Jim Meyering 73ebfeb75a (empty-format): New test, for this case. 2005-08-02 20:44:09 +00:00
Paul Eggert afc5f72438 Import regex.m4 from gnulib. 2005-07-25 19:29:51 +00:00
Paul Eggert 55a6eee63c (gl_INCLUDED_REGEX): Use AC_RUN_ELSE instead of the
obsolescent AC_TRY_RUN.  Include the default includes files, for 'exit'.
2005-07-25 19:29:34 +00:00
Paul Eggert 317a0f7a07 Fix getdate bug with relative times. 2005-07-21 22:00:55 +00:00
Paul Eggert 217cd893ef (relative_time): New type.
(RELATIVE_TIME_0): New constant.
(parser_control): Use relative_time instead of doing it ourselves.
(%union): Add new relative_time rel member.
(tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
Now typeless.
(relunit, relunit_snumber): Now of type rel.
(zone, rel, relunit, get_date): Adjust to above changes.
2005-07-21 22:00:34 +00:00
Paul Eggert 842bd54edb (gl_C_COMPOUND_LITERALS): New macro.
(gl_GETDATE): Use it.
2005-07-21 22:00:06 +00:00
Jim Meyering f4980f5997 *** empty log message *** 2005-07-19 11:10:43 +00:00
Jim Meyering 27cc9e65d2 (usage): Adjust printf argument list to match new format string. 2005-07-19 11:10:35 +00:00
Paul Eggert 19f049e34c md5sum --check now accepts multiple input files. 2005-07-19 07:35:51 +00:00
Paul Eggert eb3bd006a1 (usage, main): --check now accepts multiple input files. 2005-07-19 07:34:55 +00:00
Paul Eggert b6bf239918 (md5sum invocation): --check now allows multiple FILE inputs. 2005-07-19 07:34:26 +00:00
Paul Eggert cb0d1f9a60 md5sum --check now accepts multiple input files, and similarly for sha1sum. 2005-07-19 07:34:02 +00:00
Paul Eggert 62d9978140 Fix a problem noted by James Youngman: VPATH-style builds don't
work because of po file problems.
2005-07-18 08:03:56 +00:00
Paul Eggert d58ce6b09c (EXIT_STATUS): New macro.
(PROGRAM_NAME, usage): Behave like "false" if EXIT_STATUS indicates.
(usage): Remove "These option names may not be abbreviated."
2005-07-18 07:53:05 +00:00
Paul Eggert 983ce81d94 Initial revision. 2005-07-18 07:52:37 +00:00
Paul Eggert cc5f57603d (BUILT_SOURCES): Remove false.c.
(false.c): Remove; it's now a source file.
2005-07-18 07:52:18 +00:00