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

Comparing ray/src/rt/source.h (file contents):
Revision 2.8 by greg, Tue Jun 24 15:37:01 2003 UTC vs.
Revision 2.11 by schorsch, Mon Jul 14 22:24:00 2003 UTC

# Line 6 | Line 6
6   */
7   #ifndef _RAD_SOURCE_H_
8   #define _RAD_SOURCE_H_
9 +
10 + #include <string.h>
11 +
12   #ifdef __cplusplus
13   extern "C" {
14   #endif
15  
13
14 #include "copyright.h"
15
16   #define  AIMREQT        100             /* required aim success/failure */
17  
18   #define  SDISTANT       01              /* source distant flag */
# Line 71 | Line 71 | typedef struct {
71  
72   #define initsrcindex(s) ((s)->sn = (s)->sp = -1, (s)->np = 0)
73  
74 < #define clrpart(pt)     bzero((char *)(pt), MAXSPART/2)
74 > #define clrpart(pt)     memset((char *)(pt), '\0', MAXSPART/2)
75   #define setpart(pt,i,v) ((pt)[(i)>>2] |= (v)<<(((i)&3)<<1))
76   #define spart(pt,pi)    ((pt)[(pi)>>2] >> (((pi)&3)<<1) & 3)
77  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines