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.10 by schorsch, Mon Jun 30 14:59:13 2003 UTC

# Line 10 | Line 10
10   extern "C" {
11   #endif
12  
13 + #include <string.h>
14  
14 #include "copyright.h"
15
15   #define  AIMREQT        100             /* required aim success/failure */
16  
17   #define  SDISTANT       01              /* source distant flag */
# Line 47 | Line 46 | typedef struct {
46                          int  sn;                /* next source to aim for */
47                  }  sv;                  /* virtual source */
48          } sa;                   /* source aiming information */
49 <        long  ntests, nhits;    /* shadow tests and hits */
49 >        unsigned long
50 >                ntests, nhits;  /* shadow tests and hits */
51          OBJREC  *so;            /* source destination object */
52   }  SRCREC;              /* light source */
53  
# Line 70 | Line 70 | typedef struct {
70  
71   #define initsrcindex(s) ((s)->sn = (s)->sp = -1, (s)->np = 0)
72  
73 < #define clrpart(pt)     bzero((char *)(pt), MAXSPART/2)
73 > #define clrpart(pt)     memset((char *)(pt), '\0', MAXSPART/2)
74   #define setpart(pt,i,v) ((pt)[(i)>>2] |= (v)<<(((i)&3)<<1))
75   #define spart(pt,pi)    ((pt)[(pi)>>2] >> (((pi)&3)<<1) & 3)
76  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines