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

Comparing ray/src/rt/ambient.c (file contents):
Revision 2.17 by greg, Tue Jan 26 09:08:20 1993 UTC vs.
Revision 2.18 by greg, Fri Jan 29 12:02:23 1993 UTC

# Line 384 | Line 384 | memerr:
384   }
385  
386  
387 < #ifdef  NIX
387 > #ifdef  F_SETLKW
388  
389   int
390 ambsync()                       /* flush ambient file */
391 {
392        if (nunflshed == 0)
393                return(0);
394        nunflshed = 0;
395        return(fflush(ambfp));
396 }
397
398 #else
399
400 int
390   ambsync()                       /* synchronize ambient file */
391   {
392          static FILE  *ambinp = NULL;
# Line 444 | Line 433 | syncend:
433          fcntl(fileno(ambfp), F_SETLKW, &fls);
434          nunflshed = 0;
435          return(n);
436 + }
437 +
438 + #else
439 +
440 + int
441 + ambsync()                       /* flush ambient file */
442 + {
443 +        if (nunflshed == 0)
444 +                return(0);
445 +        nunflshed = 0;
446 +        return(fflush(ambfp));
447   }
448  
449   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines