Lines Matching +refs:write +refs:if +refs:changed

54 	Detailed if-then-else, diff3 Hunks, Detailed diff3 Normal):
77 (PARAMS): Remove; all uses changed.
79 (set_binary_mode): Define only if HAVE_SETMODE_DOS.
88 (specify_comparison_type): Don't report an error if the comparison
108 (binary): Define to true if not declared.
110 (main): Don't output nanoseconds if platform lacks them.
111 Don't treat files as binary if !binary.
113 (compare_files): Mark files as nonexistent if it looks like
120 (struct file_data.changed): Now char *, not bool *, to save
122 All uses changed.
129 (read_diff): Exit with status 126 (not 127) if errno != ENOENT
134 All uses changed.
136 ignore_file_name_case; if locale_specific_sorting, we should
151 accept a new arg MAX_OK_STATUS. All callers changed.
156 * src/system.h (S_IRWXU, S_IRWXG, S_IRWXO): Define if not defined.
162 (strcasecoll, strcasecmp): Define if not built in.
164 we now assume C89 or better. All uses changed.
166 if the C compiler doesn't. All boolean uses of 0 and 1 now
167 changed to false and true.
179 be the same, if their initial skip values differ. This fixes a
186 value wasn't needed. All callers changed.
197 * m4/setmode.m4 (AC_FUNC_SETMODE_DOS): AC_LIBOBJ(setmode) if
212 paths.h at the end. This avoids problems if the disk is full.
265 Translate "(C)" if possible.
330 (EOVERFLOW): Define if not defined.
331 (stack_t): Define to struct sigaltstack if not defined or declared.
332 Include <sys/resource.h>, <ucontext.h> if available.
333 Include <stdio.h> if DEBUG.
335 (c_stack_die): Remove info and context args. All uses changed.
342 Use global stack_base, stack_size if
347 All uses changed. Move code into new functions above.
360 <strings.h>: Include only if HAVE_STRINGS_H.
361 <stddef.h>: Include if we include stdlib.h.
362 Do not comment out all code if ! HAVE_FNMATCH_GNU.
363 (getenv): Do not declare if HAVE_DECL_GETENV.
365 (MEMPCPY): Use mempcpy if not _LIBC; use memcpy if neither _LIBC
370 (MEMPCPY) [HANDLE_MULTIBYTE]: Use wmempcpy if not _LIBC; use wmemcpy
371 if neither _LIBC nor HAVE_WMEMPCPY.
397 All uses changed. Upgrade to recent Autoconf CVS.
420 All uses changed.
427 All uses changed.
447 (cleanup): New arg signo. All uses changed.
459 lines to be empty if they contain only white space.
472 * src/system.h (SSIZE_MAX): Define if limits.h doesn't.
480 (SIZE_MAX, SSIZE_MAX): Define if standard headers don't.
571 Include stdlib.h if available, for malloc.
581 (cmp): Use "byte" rather than "char" if a translation for "byte"
610 (ENOTSUP): Define if errno.h doesn't.
616 (<ucontext.h>): Include only if HAVE_XSI_STACK_OVERFLOW_HEURISTIC.
647 * m4/gettext.m4 (AM_GNU_GETTEXT): Set LIBINTL and LTLIBINTL to empty if
713 All uses changed.
721 (errno): Declare if !STDC_HEADERS.
723 (SA_RESTART): Define if not already defined.
725 (PTRDIFF_MAX): Define if not already defined.
729 (buffer_lcm): Return a reasonable size if the multiple is too large.
730 New arg LCM_MAX. All callers changed.
765 Do not dump core if an enormous context causes an
787 Reject numeric-string options if operating in POSIX 1003.1-2001 mode.
797 (ALLOCATE): Remove. All uses changed to xmalloc, or to xmalloc plus
805 (read_diff): Exit with status 126 if the file is not executable,
822 Avoid integer overflow and core dumps if buffer alignments are
824 (slurp): Do not dump core if the file is growing as we read it.
846 (EXIT_SUCCESS, EXIT_FAILURE, EXIT_TROUBLE): Define if not defined.
848 (SA_RESTART): Define if not defined.
906 All uses changed.
917 only if the same offset is specified.
926 Set new nnames member of struct dirdata. All callers changed.
928 Use strcoll only if locale_specific_sorting is nonzero.
934 Make local variables volatile if they need to preserve their value
994 (check_stdout): Report errno info if fclose fails.
1004 (usage): Work even if ptrdiff_t is wider than int.
1012 (check_stdout): Don't assume that the translations of "write failed"
1018 (set_binary_mode): Return mode (not 1) if fd is a tty.
1031 * src/diff.c (DEFAULT_WIDTH): Remove; couldn't be changed without
1034 * lib/setmode.c: Include fcntl.h and unistd.h only if
1099 (specify_value, specify_style): Likewise. All callers changed.
1117 to pad. All callers changed.
1182 All uses changed.
1196 (ignore_initial): Now an array with 2 elements. All uses changed.
1281 <inttypes.h>: Include if HAVE_INTTYPES_H.
1291 (MIN): Renamed from min; all callers changed.
1295 (file_name_cmp): Renamed from filename_cmp. All callers changed.
1297 All callers changed.
1313 All callers changed.
1316 callers changed.
1320 inserts and deletes. All callers changed.
1360 (prepare_text_end): Strip trailing CR if requested.
1362 if they're duplicates.
1386 (dir_sort): Return 0 on error, 1 on success. All callers changed.
1389 (compare_names): Try strcasecmp if ignore_file_name_case. Then try
1405 option spellings. All uses changed.
1417 However, use file2 as the common file if this is a 3-way diff,
1441 uses changed.
1444 option spellings. All uses changed.
1469 (since it's a byte count, not a char count). All uses changed.
1495 option spellings. All uses changed.
1531 Prefer changed group formats to unchanged ones.
1535 (specify_value): Renamed from specify_format. All uses changed.
1538 uses changed.
1545 "write failed" -> "standard output on output failure.
1553 Print numeric time stamp value if localtime fails.
1565 (buffer): Now word*, not char*. All uses changed.
1569 (check_stdout): "write failed" -> "standard output"
1597 (diff_2_files): Abort if output style is not one of the
1648 (_GNU_SOURCE): Define if not defined.
1678 Define if not defined, and if UINT64_MAX is not defined.
1694 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
1696 Include only if STDC_HEADERS || _LIBC.
1697 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
1698 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
1699 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
1700 (__set_errno): Define this macro if <errno.h> doesn't.
1702 Define these macros if <stdio.h> doesn't.
1704 Define these macros if <sys/stat.h>
1705 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
1707 __xstat64): Define if not _LIBC.
1708 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
1709 (__gen_tempname): Invoke gettimeofday only if HAVE_GETTIMEOFDAY
1713 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
1757 (install): Install from source directory, if applicable.
1758 Invoke install-info if needed.
1781 (error): Add printf attribute if applicable.
1788 (getenv): Don't declare if HAVE_STDLIB_H.
1824 Report error if -l specified but pagination is not supported.
1825 Report error if -S is specified twice with conflicting values.
1838 Report error if fflush does.
1855 (briefly_report): Now returns 2 if trouble, CHANGES otherwise.
1869 (sigprocmask): New macros, if !HAVE_SIGPROCMASK.
1889 (pfatal_with_name): Abort if error returns.
1893 (begin_output): Report error if fflush does.
1947 * ed.c: Remove `#if 0'ed code.
1965 Several messages have been changed slightly,
1970 has had its first parameter's name changed so it ends in `msgid'.
1971 All arrays of msgids have had their names changed to end in `msgid'.
1996 `if (A) message ("B") : message ("C")'; this is for getmsgids.
1997 (briefly_report, diff_2_files): For label, use file_label if set.
2000 * system.h (gettext): Declare; use a stub if ! HAVE_LIBINTL_H.
2001 (setlocale): Declare; use a stub if ! HAVE_LOCALE_H.
2033 regexps with these single compiled regexps. All users changed.
2041 don't return size of function line. All callers changed.
2061 * system.h (_tolower): Define if not already defined.
2067 * diff.h (ignore_some_line_changes): Remove. All users changed.
2068 * io.c (find_and_hash_each_line): Don't invoke line_cmp if the length
2088 * diff.h (error): Change to GNU library standard. All callers changed.
2111 (private_tempnam): Use tmpnam if HAVE_TMPNAM; this simplifies porting.
2112 (exists, letters): Omit if HAVE_TMPNAM.
2137 (install): Install info files from srcdir if they're not in `.'.
2139 * cmp.c, io.c (word): Don't define if already defined.
2148 * diff3.c (main): Give proper diagnostic if too many labels were given.
2151 * system.h: <string.h>: Include if HAVE_STRING_H, too.
2152 <ctype.h>: Include here. All includers changed.
2186 We use bcmp if memcmp doesn't work, since we only test for equality.
2218 Invoke line_cmp only if ignore_some_line_changes.
2224 optimization now. The caller is changed accordingly.
2263 * system.h: Include <sys/file.h> only if HAVE_SYS_FILE_H.
2279 util.c (begin_output): Use popen+pclose if !HAVE_FORK.
2282 (edit): Use system if !HAVE_FORK.
2284 All callers changed.
2285 (private_tempnam): Try TMP if TMPDIR isn't defined.
2287 * system.h (STAT_BLOCKSIZE): Don't define if already defined.
2288 (min, max): Undef if already defined.
2337 (diag): New `minimal' arg; all callers changed. Put results into
2339 (compareseq): New `minimal' arg; all callers changed. Tune.
2350 have to read the whole file. This wins if the file turns out
2354 (primes): Omit large primes if INT_MAX is small.
2365 word-at-a-time comparisons changed to `word'.
2383 * system.h (malloc, realloc): Declare only if !HAVE_STDLIB_H.
2384 (memchr): Declare only if !HAVE_MEMCHR. These changes are
2421 * system.h (malloc, realloc): Declare only if !HAVE_STDLIB_H.
2422 (memchr): Declare only if !HAVE_MEMCHR. These changes are
2426 need it for size_t even if STDC_HEADERS.
2431 * system.h (S_IS{BLK,CHR,DIR,FIFO,REG,SOCK}): Fix defns if
2448 (getenv, malloc, realloc): Declare even if HAVE_STDLIB_H, since some
2480 (specify_format): Args no longer const pointers. All callers changed.
2489 Add first FILE * argument to output to. All callers changed.
2498 Include only if HAVE_LIMITS_H etc.
2502 rindex, struct direct). All callers changed.
2556 Remove end_char argument; it's always '\n'. All callers changed.
2562 (printc): Remove `FILE *' arg; output to stdout. All callers changed.
2576 of its desc to 0, since if it's closed other file descs may be 0.
2582 In directory comparisons, if a file is neither a regular file nor a
2599 (read_diff): pid is of type pid_t, not int. Use waitpid if available.
2623 (catchsig, trapsigs): Use sigaction if possible, since this closes the
2635 New macros, if system doesn't define them.
2636 (volatile): Don't define if already defined.
2647 Use waitpid if available. Check pr exit status.
2663 * Makefile.in (dist): Replace `if [ ! TEST ]; then ACTION; fi'
2687 if all their differences are ignored.
2690 * diff.c (compare_files): Don't use the file size shortcut if
2693 (main): Set ignore_some_changes if we might ignore some changes.
2713 * system.h (memchr): Declare if !HAVE_MEMCHR, not if
2732 Don't define if already defined.
2740 * system.h: Declare memchr #if !HAVE_MEMCHR && !STDC_HEADERS,
2741 not #if !HAVE_MEMCHR || !STDC_HEADERS.
2753 * io.c (binary_file_p): Return zero if file size is zero.
2760 define if already defined.
2796 outside the column, do not output a tab even if the output
2883 variable point to the next field to be changed, not to the last
2884 object allocated; this saves an if-then-else.
2896 * ifdef.c (print_ifdef_lines): Add %L. Optimize %l\n even if user
2901 * diff.c (longopts, main): --{old,new,unchanged,changed}--group-format
2903 no_diff_means_no_output if --unchanged-{line,group}-format allows it.
2906 All refs changed.
2915 * diff.h (line_format): Renamed from line_prefix. All refs changed.
2949 * diff.c (main): Support new -D options for if-then-else formats.
2963 (memchr): New function (if memchr is missing).
2966 (read_files): Don't bother testing second file if first is binary.
2985 if !STDC_HEADERS && !USG.
3006 this uses less memory if files are identical or differ only at end.
3025 This can win big if they differ early on.
3053 needed. Work even if the buffers are the same (because of `diff - -').
3058 Don't copy stdin buffer if `diff - -'.
3065 Count prefix lines only if needed, only count the first file's prefix.
3069 if it has a null byte in its first buffer, it's binary.
3076 (memchr): New function (if memchr is missing).
3085 * sdiff.c (xmalloc): Renamed from ck_malloc. Callers changed.
3146 * analyze.c, diff.c, diff.h, io.c: For -y, compare even if same file.
3167 * ifdef.c: Don't dump core if `diff -Dx f f'.
3194 * context.c: Align context with tab if -T is given. Tune.
3203 Clean up temporary file and kill subsidiary diff if interrupted.
3223 * Makefile.in, configure: Only put $< in Makefile if using VPATH,
3228 * configure: Create config.status. Remove it and Makefile if
3234 Makefile.in in that directory. Set VPATH if srcdir is not `.'.
3246 Don't not define const if __GNUC__ is defined -- that would
3270 * util.c (finish_output): Don't die if begin_output was not called.
3322 * diff3.c (main): Don't get confused if one of the arguments
3325 * diff.c (compare_files): Don't get confused if comparing
3376 Also, output even if files have no differences.
3379 Return 2 if a newline is missing.
3380 Print them even if files end with identical text.
3410 * diff3.c (WIFEXITED): Undef it if WEXITSTATUS is not defined.
3415 * diff.h (O_RDONLY): Define if not defined.
3436 (read_diff): Return address of end, not size read. Calls changed.
3437 Pass -a to diff if given to diff3.
3444 Error message if excess -t operands. Error for incompatible options.
3445 Error if `-' given more than once.
3447 (output_diff3): REV_MAPPING is now an arg. Call changed.
3451 REV_MAPPING is now an arg. Call changed.
3457 or both files, if not robust output style.
3463 Change if statements to switch.
3465 * io.c (slurp): Don't mention differences in final newline if -B.
3476 * diff.h (dup2): Don't define if XENIX.
3478 * diff.c (main): Check for write error at end.
3495 * dir.c (diff_dirs): Free things only if nonzero.
3501 * diff3.c (xmalloc, xrealloc): Don't die if size == 0 returns 0.
3559 VOID defined as void if __STDC__, char if not.
3578 if all changes were ignored.
3615 * io.c (find_equiv_class): Don't index by N if too low.
3674 (compare_files): Reject -D if files spec'd are directories.
3719 different if exactly one of the files is missing its final
3724 newline. For OUTPUT_RCS, decrement last line's length if
3749 Sometimes call diff_dirs if subdir exists in just one place.
3776 (find_identical_ends): Special case if either file is empty;
3798 Fatal error if context length spec'd twice.
3802 substitute that one line, then resume the insert if nec.
3839 Status now 1 if one file is a dir and the other isn't, etc.
3876 along with this program; see the file COPYING. If not, write to