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

Comparing ray/src/rt/rc2.c (file contents):
Revision 2.23 by greg, Wed Aug 14 20:07:20 2019 UTC vs.
Revision 2.25 by greg, Fri Apr 7 00:03:26 2023 UTC

# Line 143 | Line 143 | getostream(const char *ospec, const char *mname, int b
143          LUENT                   *lep;
144          STREAMOUT               *sop;
145          char                    *cp;
146 <        
146 >
147 >        info[0] = '\0';
148          if (ospec == NULL) {                    /* use stdout? */
149                  if (!noopen & !using_stdout) {
150                          if (outfmt != 'a')
151                                  SET_FILE_BINARY(stdout);
152 + #ifdef getc_unlocked
153 +                        flockfile(stdout);      /* avoid lock/unlock overhead */
154 + #endif
155                          if (header) {
156                                  cp = info;
157                                  if (yres > 0) {
# Line 164 | Line 168 | getostream(const char *ospec, const char *mname, int b
168                          if (waitflush > 0)
169                                  fflush(stdout);
170                          stdos.xr = xres; stdos.yr = yres;
167 #ifdef getc_unlocked
168                        flockfile(stdout);      /* avoid lock/unlock overhead */
169 #endif
171                          using_stdout = 1;
172                  }
173                  stdos.ofp = stdout;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines