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

Comparing ray/src/cv/bsdf2ttree.c (file contents):
Revision 2.24 by greg, Sat Mar 8 01:05:00 2014 UTC vs.
Revision 2.25 by greg, Tue Mar 11 19:37:45 2014 UTC

# Line 135 | Line 135 | eval_isotropic(char *funame)
135                          exit(1);
136                  }
137                  SET_FILE_BINARY(ofp);
138 + #ifdef getc_unlocked                            /* avoid lock/unlock overhead */
139 +                flockfile(ofp);
140 + #endif
141          } else
142                  fputs("{\n", stdout);
143                                                  /* need to assign Dx, Dy, Dz? */
# Line 239 | Line 242 | eval_anisotropic(char *funame)
242                                          progname);
243                          exit(1);
244                  }
245 +                SET_FILE_BINARY(ofp);
246 + #ifdef getc_unlocked                            /* avoid lock/unlock overhead */
247 +                flockfile(ofp);
248 + #endif
249          } else
250                  fputs("{\n", stdout);
251                                                  /* need to assign Dx, Dy, Dz? */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines