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

Comparing ray/src/px/ra_avs.c (file contents):
Revision 2.5 by greg, Wed Oct 27 09:37:37 1993 UTC vs.
Revision 2.8 by greg, Sun Feb 27 10:17:30 1994 UTC

# Line 65 | Line 65 | char  *argv[];
65                  exit(1);
66          }
67          if (i == argc-2 && freopen(argv[i+1], "w", stdout) == NULL) {
68 <                fprintf(stderr, "can't open output \"%s\"\n",
68 >                fprintf(stderr, "%s: can't open output \"%s\"\n",
69                                  progname, argv[i+1]);
70                  exit(1);
71          }
# Line 78 | Line 78 | char  *argv[];
78                                          /* get their image resolution */
79                  xmax = getint(4, stdin);
80                  ymax = getint(4, stdin);
81 +                if (feof(stdin))
82 +                        quiterr("empty input file");
83                                          /* put our header */
84 +                newheader("RADIANCE", stdout);
85                  printargs(i, argv, stdout);
86                  fputformat(COLRFMT, stdout);
87                  putchar('\n');

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines