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

Comparing ray/src/common/portio.c (file contents):
Revision 2.5 by greg, Fri Nov 15 16:20:35 1996 UTC vs.
Revision 2.10 by greg, Tue Dec 9 15:51:42 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1992 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Portable i/o for binary files
6 + *
7 + * External symbols declared in standard.h
8   */
9  
10 + #include "copyright.h"
11 +
12   #include <stdio.h>
13  
14 < #ifndef frexp
15 < extern double  frexp();
14 > #include "rtio.h"
15 >
16 > #include <math.h>
17 >
18 > #ifdef getc_unlocked            /* avoid horrendous overhead of flockfile */
19 > #define getc    getc_unlocked
20 > #define putc    putc_unlocked
21   #endif
16 #ifndef ldexp
17 extern double  ldexp();
18 #endif
22  
23  
24 + void
25   putstr(s, fp)                   /* write null-terminated string to fp */
26   register char  *s;
27   register FILE  *fp;
# Line 28 | Line 32 | register FILE  *fp;
32   }
33  
34  
35 + void
36   putint(i, siz, fp)              /* write a siz-byte integer to fp */
37   long  i;
38   register int  siz;
# Line 38 | Line 43 | register FILE  *fp;
43   }
44  
45  
46 + void
47   putflt(f, fp)                   /* put out floating point number */
48   double  f;
49   FILE  *fp;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines