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

Comparing ray/src/gen/replmarks.c (file contents):
Revision 2.20 by greg, Tue Apr 22 14:51:29 2025 UTC vs.
Revision 2.21 by greg, Wed Apr 23 01:57:04 2025 UTC

# Line 139 | Line 139 | userr:
139   void
140   convert(                /* replace marks in a stream */
141          char    *name,
142 <        register FILE   *fin
142 >        FILE    *fin
143   )
144   {
145 <        register int    c;
145 >        int     c;
146  
147          while ((c = getc(fin)) != EOF) {
148                  if (isspace(c))                         /* blank */
# Line 172 | Line 172 | cvcomm(                /* convert a command */
172   )
173   {
174          FILE    *pin;
175 <        char    buf[512], *fgetline();
175 >        char    buf[512];
176  
177          fgetline(buf, sizeof(buf), fin);
178          if (expand) {
# Line 198 | Line 198 | cvobject(              /* convert an object */
198          FILE    *fin
199   )
200   {
201        extern char     *fgetword();
201          char    buf[128], typ[16], nam[128];
202          int     i, n;
203 <        register int    j;
203 >        int     j;
204  
205          if (fgetword(buf, sizeof(buf), fin) == NULL ||
206                          fgetword(typ, sizeof(typ), fin) == NULL ||
# Line 246 | Line 245 | readerr:
245   void
246   replace(                /* replace marker */
247          char    *fname,
248 <        register struct mrkr    *m,
248 >        struct mrkr     *m,
249          char    *mark,
250          FILE    *fin
251   )
# Line 300 | Line 299 | edgecmp(                       /* compare two edges, descending order */
299  
300   int
301   buildxf(                /* build transform for marker */
302 <        register char   *xf,
302 >        char    *xf,
303          double  markscale,
304          FILE    *fin
305   )
# Line 310 | Line 309 | buildxf(               /* build transform for marker */
309          FVECT   xvec, yvec, zvec;
310          double  xlen;
311          int     n;
312 <        register int    i;
312 >        int     i;
313          /*
314           * Read and sort vectors:  longest is hypotenuse,
315           *      second longest is x' axis,
# Line 383 | Line 382 | buildxf(               /* build transform for marker */
382  
383   int
384   addrot(         /* compute rotation (x,y,z) => (xp,yp,zp) */
385 <        register char   *xf,
385 >        char    *xf,
386          FVECT xp,
387          FVECT yp,
388          FVECT zp

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines