summaryrefslogtreecommitdiff
path: root/src/diff.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add comment.Paul Eggert1994-09-221-0/+4
|
* (program_name): Renamed from `program', for consistency.Paul Eggert1994-09-151-3/+3
|
* (main): Use '\n', not line_end_char.Paul Eggert1994-09-121-4/+4
| | | | (ignore_some_line_changes): New variable; replaces `length_varies'.
* (try_help, check_stdout): New functions.Paul Eggert1994-09-081-39/+111
| | | | | | (usage): Just print usage; let caller worry about exiting. (option_help): New variable. (filetype): Add Posix.1b file types.
* (binary_I_O): New variable for --binary option.Paul Eggert1994-09-021-11/+40
| | | | | | | | | (main, usage, compare_files): Support --binary option. (main): Call initialize_main first. If we'll have children, make sure SIGCHLD isn't ignored. (compare_files): Use filename_cmp to compare file names. Use filename_lastdirchar to find last directory char in a file name. Use same_file to determine whether two files are the same.
* (main): allow -p -u.Paul Eggert1993-12-031-1/+5
|
* (long_options, main, usage): Add `--help'.Paul Eggert1993-11-101-17/+24
| | | | | | (main): Send version number to stdout, not stderr. (usage): Send usage to stdout, not stderr. (compare_files): Initialize `inf' properly.
* (add_exclude_file): Cast memchr to (char *)Paul Eggert1993-09-271-1/+1
| | | | to suppress bogus warnings on some nonstandard hosts.
* Remove redundant "system.h" inclusion.Paul Eggert1993-09-181-1/+0
|
* (main, longopts): Add --line-format=FORMAT option.Paul Eggert1993-09-131-29/+33
| | | | | (specify_format): Args no longer const pointers. All callers changed. (compare_files): rindex -> strrchr.
* (compare_files): Two files with the same name must be the same file;Paul Eggert1993-09-031-1/+6
| | | | avoid a needless `stat' in that case.
* Add prototypes to function declarations. Use size_t, not int, when needed.Paul Eggert1993-08-271-91/+161
| | | | | | | | | | | | | | | | | | Use `const' when needed to pacify gcc. Use STD{IN,OUT,ERR}_FILENO instead of [012]. (usage): Sort options. (filetype): New function. (compare_files): Set stdin's st_mtime to be the current time. Leave its name "-" instead of changing it to "Standard Input"; to test whether a file is stdin, we must compare its name to "-" instead of its desc to 0, since if it's closed other file descs may be 0. When comparing standard input to a file, and using a shortcut (e.g. looking at file sizes or inode numbers), take the lseek offset into account before deciding whether the files are identical. Pretend that nonexistent files have the same filetype as existing files. Rename `errorcount' to `failed', since it's boolean. In directory comparisons, if a file is neither a regular file nor a directory, just print its type and the other file's type.
* (main): Cast args to compare_files, for traditional C.Paul Eggert1993-05-261-1/+2
|
* (compare_files): Don't use the file size shortcut ifPaul Eggert1993-05-251-24/+7
| | | | | | | | ignore_some_changes is nonzero, since the file size may differ merely due to ignored changes. (briefly_report): New function. (main): Set ignore_some_changes if we might ignore some changes. Remove unsystematic assignment of 0 to static vars.
* entered into RCSPaul Eggert1993-05-211-0/+1
|
* *** empty log message ***Paul Eggert1993-04-231-1/+8
|
* *** empty log message ***Richard M. Stallman1993-03-051-45/+130
|
* *** empty log message ***Paul Eggert1992-09-061-125/+169
|
* Initial revisionDavid MacKenzie1992-07-071-0/+791