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.9 by greg, Tue Oct 16 16:52:05 2018 UTC vs.
Revision 2.10 by greg, Wed Oct 17 17:39:23 2018 UTC

# Line 291 | Line 291 | match_val(const LUENT *ep1, void *p2)
291  
292   /* Compare two sets of header variables */
293   static int
294 < headers_match(LUTAB *hp1, LUTAB *hp2)
294 > headers_match()
295   {
296 <        int     ne = lu_doall(hp1, match_val, hp2);
296 >        int     ne = lu_doall(&hdr1, match_val, &hdr2);
297          if (ne < 0)
298                  return(0);      /* something didn't match! */
299                                  /* non-fatal if second header has extra */
300 <        if (report >= REP_WARN && (ne = lu_doall(hp2, NULL, NULL) - ne))
300 >        if (report >= REP_WARN && (ne = lu_doall(&hdr2, NULL, NULL) - ne))
301                  printf("%s: warning - '%s' has %d extra header setting(s)\n",
302                                          progname, f2name, ne);
303          return(1);              /* good match */
# Line 709 | Line 709 | main(int argc, char *argv[])
709                  return(1);
710          }
711          ign_header |= !has_header(typ1);        /* check headers if indicated */
712 <        if (!ign_header && !headers_match(&hdr1, &hdr2))
712 >        if (!ign_header && !headers_match())
713                  return(1);
714          lu_done(&hdr1); lu_done(&hdr2);
715          if (!ign_header & (report >= REP_WARN)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines