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

Comparing ray/src/cal/total.c (file contents):
Revision 1.7 by greg, Fri Jan 29 17:21:43 2010 UTC vs.
Revision 1.9 by greg, Sun Mar 9 20:07:27 2014 UTC

# Line 13 | Line 13 | static const char      RCSid[] = "$Id$";
13   #include  <math.h>
14   #include  "platform.h"
15  
16 < #define  MAXCOL         2048            /* maximum number of columns */
16 > #define  MAXCOL         8192            /* maximum number of columns */
17  
18   #define  ADD            0               /* add numbers */
19   #define  MULT           1               /* multiply numbers */
# Line 241 | Line 241 | char  *fname
241          }
242          if (nbicols)
243                  SET_FILE_BINARY(fp);
244 + #ifdef getc_unlocked                            /* avoid lock/unlock overhead */
245 +        flockfile(fp);
246 + #endif
247 +
248          ltotal = 0;
249          while (!feof(fp)) {
250                  if (ltotal == 0) {                      /* initialize */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines