ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/radcompare.c
(Generate patch)

Comparing ray/src/util/radcompare.c (file contents):
Revision 2.30 by greg, Tue May 24 22:34:18 2022 UTC vs.
Revision 2.32 by greg, Wed Mar 8 19:59:48 2023 UTC

# Line 74 | Line 74 | enum {TYP_UNKNOWN, TYP_TEXT, TYP_ASCII, TYP_RGBE, TYP_
74  
75                                  /* header variables to always ignore */
76   const char      *hdr_ignkey[] = {
77                        "FORMAT",
77                          "SOFTWARE",
78                          "CAPDATE",
79                          "GMT",
# Line 616 | Line 615 | compare_text()
615                                                  /* compare non-empty lines */
616                  if (!equiv_string(l1buf.str, l2buf.str)) {
617                          if (report != REP_QUIET) {
618 <                                printf("%s: inputs '%s' and '%s' differ at line %d|%d\n",
619 <                                                progname, f1name, f2name,
620 <                                                lin1cnt, lin2cnt);
618 >                                printf("%s: inputs '%s' and '%s' differ at line %d",
619 >                                                progname, f1name, f2name, lin1cnt);
620 >                                if (lin1cnt != lin2cnt)
621 >                                        printf("|%d\n", lin2cnt);
622 >                                else
623 >                                        putchar('\n');
624                                  if ( report >= REP_VERBOSE &&
625                                                  (l1buf.len < 256) &
626                                                  (l2buf.len < 256) ) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines