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

Comparing ray/src/rt/m_mist.c (file contents):
Revision 2.17 by greg, Tue Apr 19 01:15:06 2005 UTC vs.
Revision 2.18 by greg, Tue Jul 8 18:25:00 2014 UTC

# Line 58 | Line 58 | static void add2slist(RAY  *r, int  *sl);
58  
59   static int
60   inslist(                /* return index of source n if it's in list sl */
61 <        register int  *sl,
62 <        register int  n
61 >        int  *sl,
62 >        int  n
63   )
64   {
65 <        register int  i;
65 >        int  i;
66  
67          for (i = sl[0]; i > 0; i--)
68                  if (sl[i] == n)
# Line 73 | Line 73 | inslist(               /* return index of source n if it's in list
73  
74   static int
75   srcmatch(       /* check for an id match on a light source */
76 <        register SRCREC  *sp,
77 <        register char  *id
76 >        SRCREC  *sp,
77 >        char  *id
78   )
79   {
80 <        register char  *cp;
80 >        char  *cp;
81                                                  /* check for relay sources */
82          while ((cp = strchr(id, RELAYDELIM)) != NULL) {
83                  if (!(sp->sflags & SVIRTUAL) || sp->so == NULL)
# Line 95 | Line 95 | srcmatch(      /* check for an id match on a light source *
95  
96   static void
97   add2slist(      /* add source list to ray's */
98 <        register RAY  *r,
99 <        register int  *sl
98 >        RAY  *r,
99 >        int  *sl
100   )
101   {
102          static int  slspare[MAXSLIST+1];        /* in case of emergence */
103 <        register int  i;
103 >        int  i;
104  
105          if (sl == NULL || sl[0] == 0)           /* nothing to add */
106                  return;
# Line 116 | Line 116 | add2slist(     /* add source list to ray's */
116   }
117  
118  
119 < extern int
119 > int
120   m_mist(         /* process a ray entering or leaving some mist */
121          OBJREC  *m,
122 <        register RAY  *r
122 >        RAY  *r
123   )
124   {
125          RAY  p;
# Line 127 | Line 127 | m_mist(                /* process a ray entering or leaving some mis
127          int  newslist[MAXSLIST+1];
128          COLOR  mext;
129          double  re, ge, be;
130 <        register int  i, j;
130 >        int  i, j;
131                                          /* check arguments */
132          if (m->oargs.nfargs > 7)
133                  objerror(m, USER, "bad arguments");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines