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

Comparing ray/src/util/rcrop.c (file contents):
Revision 1.6 by greg, Tue Mar 15 15:01:22 2022 UTC vs.
Revision 1.8 by greg, Tue Mar 15 20:54:49 2022 UTC

# Line 18 | Line 18 | char   *progname;              /* global argv[0] */
18  
19   VIEW    vw = STDVIEW;
20   int     gotvw = 0;
21 < char    fmt[MAXFMTLEN] = "Unknown";
21 > char    fmt[MAXFMTLEN] = "ascii";       /* assumed when unspecified */
22   int     ncomp = 0;
23   RESOLU  res;
24   int     rmin, cmin, nrows, ncols;
# Line 234 | Line 234 | main(int argc, char *argv[])
234                  fputs(": cannot open for writing\n", stderr);
235                  return(1);
236          }
237 + #ifdef getc_unlocked            /* avoid stupid semaphores */
238 +        flockfile(fp);
239 +        flockfile(stdout);
240 + #endif
241                                  /* process information header */
242          if (getheader(fp, headline, NULL) < 0) {
243                  fputs(progname, stderr);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines