summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-07-05(DECIMAL_DIGIT_ACCUMULATE): Generate a hard errorPaul Eggert
(not just a warning) if GCC is used and the types don't match.
2005-07-05Adjust to the change to DECIMAL_DIGIT_ACCUMULATE: its last arg is nowPaul Eggert
a type, not a value.
2005-07-05(VERIFY_W_TYPEOF): Remove; no longer needed.Paul Eggert
(DECIMAL_DIGIT_ACCUMULATE): Change last arg from T's maximum value to T itself. All callers changed. Check that T is unsigned, and that Accum is of type T. This fixes a bug in the unlikely case where SIZE_MAX <= INT_MAX, and it no longer requires typeof to do the proper validity checks.
2005-07-05Adjust to verify.h change.Paul Eggert
2005-07-05(VERIFY_W_TYPEOF): Adjust to verify.h change.Paul Eggert
2005-07-04rename: s/verify_dcl/verify_decl/Jim Meyering
2005-07-04Include "verify.h".Jim Meyering
2005-07-04Reflect name change: s/VERIFY/verify_dcl/.Jim Meyering
2005-07-04(verify): Rename from VERIFY_EXPR, to be lower case,Jim Meyering
like assert. Use sizeof, rather than equivalent ((...)0), for it's slightly simpler syntax. Suggestions from Paul Eggert. (verify_decl): Rename from VERIFY.
2005-07-03(main): Using --reply now evokes a warning.Jim Meyering
(usage): Remove description of --reply.
2005-07-03.Jim Meyering
2005-07-03Include "lstat.h" rather than rolling our own.Paul Eggert
2005-07-03(verify_numeric): Rename from verify.Jim Meyering
Update caller.
2005-07-03Regenerate.Paul Eggert
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(touch): Don't call fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(tee): Don't call fopen_safer; no longer needed now that we include stdio--.h.
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(recheck, tail_file): Don't call fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdlib--.h rather than unistd-safer.h.Paul Eggert
(copy_to_temp): Don't call fd_safer; no longer needed now that we include stdlib--.h.
2005-07-03Include fd-reopen.h.Paul Eggert
(display_all, display_settings, display_window_size, set_window_size): Remove fd arg, since we now assume stdin. All callers changed. (main): Reuse stdin rather than opening a new one. This saves a file descriptor.
2005-07-03Include fcntl--.h rather than unistd-safer.h.Paul Eggert
Include fd-reopen.h. (input_desc): Remove. All uses replaced by STDIN_FILENO. (cwrite): Don't call fd_safer; no longer needed now that we include fcntl--.h. (main): Reuse stdin rather than opening a new one. This saves a file descriptor.
2005-07-03Include stdio--.h rather than stdio-safer.h.Paul Eggert
Include stdlib--.h. Do not include unistd-safer.h. (create_temp_file): Don't call fd_safer; no longer needed now that we include *--.h files. (xfopen): Don't call fopen_safer, for similar reasons.
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(wipename, wipe_file): Don't use fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(open_file): Invoke fopen, not fopen_safer.
2005-07-03Include fd-reopen.h.Paul Eggert
Include unistd--.h, not unistd-safer.h. (main): Use fd_reopen to simplify code. When replacing stdin, use "/dev/null" not "/", as that's less likely to go wrong these days. (main): Use dup, not dup_safer.
2005-07-03Include stdio--.h.Paul Eggert
(digest_check): Don't try to read both checksums and data from stdin.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(main): Use fopen, not fopen_safer.
2005-07-03Include fd-reopen.h.Paul Eggert
(open_fd): Remove. All callers changed to use fd_reopen instead.
2005-07-03Include fd-reopen.h.Paul Eggert
Include stdio--.h, not stdio-safer.h. (input_desc): Remove. All uses changed to STDIN_FILENO. (set_input_file): Reopen stdin, to simplify code. (create_output_file): Use fopen, not fopen_safer.
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(copy_reg): Don't call fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(compare_files): Use fopen, not fopen_safer.
2005-07-03Don't include stdio-safer.h; no longer needed.Paul Eggert
(writeline): Remove stream arg; we now always output to stdout. All callers changed. (check_file): Reuse stdout rather than opening a new stream. This saves a file descriptor.
2005-07-03(main): Reuse stdin rather than opening a new stream.Paul Eggert
This saves a file descriptor.
2005-07-02.Jim Meyering
2005-07-01Assume HAVE_UNISTD_H.Jim Meyering
2005-07-01Assume HAVE_FCNTL_H (i.e., include <fcntl.h>Jim Meyering
unconditionally, and don't include <sys/file.h>).
2005-06-30.Jim Meyering
2005-06-30Add uses of ARGMATCH_VERIFY to ensure thatJim Meyering
corresponding option string and value arrays are consistent.
2005-06-30Add uses of ARGMATCH_VERIFY to ensure thatJim Meyering
corresponding option string and value arrays are consistent. Remove a harmless trailing `, 0' from a value list.
2005-06-30Add uses of ARGMATCH_VERIFY to ensure thatJim Meyering
corresponding option string and value arrays are consistent. Remove a harmless trailing `, 0' from a value list.
2005-06-30(VERIFY): Guard definition with #ifndef.Jim Meyering
(VERIFY_EXPR): Undef before defining.
2005-06-29Use one fewer helper macro.Jim Meyering
2005-06-29(main): Use X2REALLOC rather than x2realloc.Jim Meyering
2005-06-29(fillbuf): Use X2REALLOC rather than x2realloc.Jim Meyering
2005-06-29(show_date): Use X2REALLOC rather than x2realloc.Jim Meyering
2005-06-29(main, store_char): Use X2REALLOC rather than x2realloc.Jim Meyering
2005-06-29Update sole use of VERIFY.Jim Meyering
Use X2REALLOC, rather than x2realloc.
2005-06-29(VERIFY): Rewrite to use string-concatenationJim Meyering
and __LINE__ so as not to require a struct name parameter. (GL_CONCAT, GL_CONCAT2, GL_LINE_CONCAT): Define helper macros.
2005-06-29(gobble_file): Use stat.st_author, not stat.st_uidJim Meyering
when computing the --author column width. This bug might have resulted in misaligned columns when using the --author option on the Hurd. Spotted by Arnold Robbins. The bug was introduced on 2003-12-03.
2005-06-28split long line in copyright commentJim Meyering
2005-06-28(fillbuf): Use x2realloc on 1-byte base types, not x2nrealloc.Jim Meyering