ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rxtmain.cpp
(Generate patch)

Comparing ray/src/rt/rxtmain.cpp (file contents):
Revision 2.4 by greg, Wed May 1 22:06:09 2024 UTC vs.
Revision 2.6 by greg, Sat Aug 3 21:33:15 2024 UTC

# Line 351 | Line 351 | main(int  argc, char  *argv[])
351          if (outform != 'a')
352                  SET_FILE_BINARY(stdout);
353          if (doheader) {                 /* print header? */
354 <                static char     fmt[] = OCTFMT;
355 <                FILE *          octfp = fopen(argv[i], "rb");
356 <                if (checkheader(octfp, fmt, stdout) < 0)
357 <                        error(USER, "bad octree header");
358 <                fclose(octfp);
354 >                newheader("RADIANCE", stdout);
355 >                fputs(myRTmanager.GetHeader(), stdout);
356                  printargs(i, argv, stdout);
357                  printf("SOFTWARE= %s\n", VersionID);
358                  fputnow(stdout);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines