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

Comparing ray/src/hd/rholo.c (file contents):
Revision 3.79 by greg, Thu Aug 2 18:33:43 2018 UTC vs.
Revision 3.80 by greg, Fri Oct 5 19:19:16 2018 UTC

# Line 230 | Line 230 | static void
230   initrholo(void)                 /* get our holodeck running */
231   {
232          extern int      global_packet();
233 <        register int    i;
233 >        int     i;
234                                                  /* close holodeck on exec() */
235          fcntl(hdlist[0]->fd, F_SETFD, FD_CLOEXEC);
236  
# Line 250 | Line 250 | initrholo(void)                        /* get our holodeck running */
250                  hdcachesize = 1024.*1024.*vflt(CACHE);
251                                                  /* open report file */
252          if (vdef(REPORT)) {
253 <                register char   *s = sskip2(vval(REPORT), 1);
253 >                char    *s = sskip2(vval(REPORT), 1);
254                  if (*s && freopen(s, "a", stderr) == NULL)
255                          quit(2);
256          }
# Line 324 | Line 324 | rholo(void)                            /* holodeck main loop */
324          PACKET  *pl = NULL, *plend;
325          off_t   fsiz;
326          int     pksiz;
327 <        register PACKET *p;
327 >        PACKET  *p;
328          time_t  t;
329                                          /* check display */
330          if (nprocs <= 0)
# Line 391 | Line 391 | rholo(void)                            /* holodeck main loop */
391  
392   static void
393   setdefaults(                    /* set default values */
394 <        register HDGRID *gp
394 >        HDGRID  *gp
395   )
396   {
397          extern char     *atos();
398 <        register int    i;
398 >        int     i;
399          int     n;
400          double  len[3], d;
401  
# Line 495 | Line 495 | headline(                      /* process information header line */
495   )
496   {
497          extern char     FMTSTR[];
498 <        register char   *cp;
498 >        char    *cp;
499          char    fmt[MAXFMTLEN];
500  
501          if (formatval(fmt, s)) {
# Line 566 | Line 566 | loadholo(void)                 /* start loading a holodeck from fnam
566   }
567  
568  
569 < extern void
569 > void
570   done_packets(           /* handle finished packets */
571          PACKET  *pl
572   )
573   {
574          static int      n2flush = 0;
575 <        register PACKET *p;
575 >        PACKET  *p;
576  
577          while (pl != NULL) {
578                  p = pl; pl = p->next; p->next = NULL;
# Line 603 | Line 603 | done_packets(          /* handle finished packets */
603  
604   static void
605   rootname(               /* remove tail from end of fn */
606 <        register char   *rn,
607 <        register char   *fn
606 >        char    *rn,
607 >        char    *fn
608   )
609   {
610          char    *tp, *dp;
# Line 632 | Line 632 | badvalue(                      /* report bad variable value and exit */
632  
633   void
634   eputs(s)                        /* put error message to stderr */
635 < register char  *s;
635 > char  *s;
636   {
637          static int  midline = 0;
638  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines