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.7 by schorsch, Sat Jun 7 00:54:58 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 47 | Line 47 | typedef struct {
47                          int  sn;                /* next source to aim for */
48                  }  sv;                  /* virtual source */
49          } sa;                   /* source aiming information */
50 <        long  ntests, nhits;    /* shadow tests and hits */
50 >        unsigned long
51 >                ntests, nhits;  /* shadow tests and hits */
52          OBJREC  *so;            /* source destination object */
53   }  SRCREC;              /* light source */
54  
# Line 70 | 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