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

Comparing ray/src/util/rcollate.c (file contents):
Revision 2.42 by greg, Wed Mar 16 19:25:25 2022 UTC vs.
Revision 2.43 by greg, Thu Mar 17 01:23:16 2022 UTC

# Line 763 | Line 763 | main(int argc, char *argv[])
763                                  argv[0]);
764                  return(!output_stream(stdin));
765          }
766 <        if (i_header) {                         /* read header */
767 <                if (getheader(stdin, headline, NULL) < 0)
768 <                        return(1);
769 <                if (!check_sizes())
770 <                        return(1);
771 <        } else if (!check_sizes())
766 >                                                /* read input header? */
767 >        if (i_header && getheader(stdin, headline, NULL) < 0)
768                  return(1);
769 <        if (o_header) {                         /* write/add to header */
769 >        if (!check_sizes())                     /* adjust sizes */
770 >                return(1);
771 >        if (o_header) {                         /* add to output header? */
772                  if (!i_header)
773                          newheader("RADIANCE", stdout);
774                  printargs(a, argv, stdout);
775                  printf("NCOMP=%d\n", n_comp);
776          }
777 <        if (!comp_size) {                       /* a little late... */
777 >        if (!comp_size) {                       /* a little late, here... */
778                  SET_FILE_TEXT(stdin);
779                  SET_FILE_TEXT(stdout);
780          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines