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

Comparing ray/src/meta/misc.c (file contents):
Revision 1.5 by greg, Fri Sep 23 19:22:37 2005 UTC vs.
Revision 1.6 by greg, Fri Jun 9 15:25:49 2023 UTC

# Line 18 | Line 18 | char  coms[] = COML;
18  
19   int
20   comndx(         /* return index for command */
21 <        register int  c
21 >        int  c
22   )
23  
24   {
25 < register char  *cp;
25 > char  *cp;
26  
27   if (!isalpha(c))
28      return(-1);
# Line 41 | Line 41 | comndx(                /* return index for command */
41  
42   PRIMITIVE  *
43   pop(                    /* pop top off plist */
44 <        register PLIST  *pl
44 >        PLIST  *pl
45   )
46  
47   {
48 < register PRIMITIVE  *p;
48 > PRIMITIVE  *p;
49  
50   if ((p = pl->ptop) != NULL)  {
51      if ((pl->ptop = p->pnext) == NULL)
# Line 60 | Line 60 | pop(                   /* pop top off plist */
60  
61   void
62   push(           /* push primitive onto plist */
63 <        register PRIMITIVE  *p,
64 <        register PLIST  *pl
63 >        PRIMITIVE  *p,
64 >        PLIST  *pl
65   )
66  
67   {
# Line 76 | Line 76 | push(          /* push primitive onto plist */
76  
77   void
78   add(            /* add primitive to plist */
79 <        register PRIMITIVE  *p,
80 <        register PLIST  *pl
79 >        PRIMITIVE  *p,
80 >        PLIST  *pl
81   )
82   {
83  
# Line 94 | Line 94 | add(           /* add primitive to plist */
94  
95   void
96   append(         /* append pl1 to the end of pl2 */
97 <        register PLIST  *pl1,
98 <        register PLIST  *pl2
97 >        PLIST  *pl1,
98 >        PLIST  *pl2
99   )
100  
101   {
# Line 114 | Line 114 | append(                /* append pl1 to the end of pl2 */
114  
115   void
116   fargs(          /* free any arguments p has */
117 < register PRIMITIVE  *p
117 > PRIMITIVE  *p
118   )
119  
120   {
# Line 130 | Line 130 | register PRIMITIVE  *p
130  
131   char *
132   nextscan(               /* scan and advance through string */
133 <        register char  *start,
133 >        char  *start,
134          char  *format,
135          char  *result
136   )
# Line 151 | Line 151 | nextscan(              /* scan and advance through string */
151  
152   void
153   mcopy(  /* copy p2 into p1 size n */
154 < register char  *p1,
155 < register char  *p2,
156 < register int  n
154 > char  *p1,
155 > char  *p2,
156 > int  n
157   )
158  
159   {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines