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

Comparing ray/src/px/pcompos.c (file contents):
Revision 1.4 by greg, Tue Sep 12 13:04:24 1989 UTC vs.
Revision 1.5 by greg, Thu Sep 14 09:20:36 1989 UTC

# Line 15 | Line 15 | static char SCCSid[] = "$SunId$ LBL";
15   #include  "color.h"
16  
17  
18 < #define  MAXFILE        16
18 > #define  MAXFILE        32
19  
20                                          /* output picture size */
21   int  xsiz = 0;
# Line 123 | Line 123 | getfile:
123                  } else {
124                          input[nfile].name = argv[an];
125                          if ((input[nfile].fp = fopen(argv[an], "r")) == NULL) {
126 <                                fprintf(stderr, "%s: cannot open\n", argv[an]);
126 >                                perror(argv[an]);
127                                  quit(1);
128                          }
129                  }
# Line 217 | Line 217 | compos()                               /* composite pictures */
217                  if (y >= ysiz)
218                          continue;
219                  if (fwritecolrs(scanout, xsiz, stdout) < 0) {
220 <                        fprintf(stderr, "%s: write error\n", progname);
220 >                        perror(progname);
221                          quit(1);
222                  }
223          }
224          return;
225   memerr:
226 <        fprintf(stderr, "%s: out of memory\n", progname);
226 >        perror(progname);
227          quit(1);
228   }
229  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines