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

Comparing ray/src/hd/rhdisp.c (file contents):
Revision 3.54 by greg, Thu Aug 18 00:52:48 2016 UTC vs.
Revision 3.55 by greg, Fri Oct 5 19:19:16 2018 UTC

# Line 61 | Line 61 | static long    nimmrays, naddrays;
61   static int disp_wait(void);
62   static void add_holo(HDGRID *hdg, char *gfn, char *pfn);
63   static void disp_bundle(PACKHEAD *p);
64 < static void new_view(register VIEW *v);
64 > static void new_view(VIEW *v);
65   static void set_focus(char *args);
66   static int usr_input(void);
67   static void printview(void);
# Line 215 | Line 215 | disp_wait(void)                        /* wait for more input */
215  
216  
217   static void
218 < add_holo(               /* register a new holodeck section */
218 > add_holo(               /* a new holodeck section */
219          HDGRID  *hdg,
220          char    *gfn,
221          char    *pfn
# Line 223 | Line 223 | add_holo(              /* register a new holodeck section */
223   {
224          VIEW    nv;
225          double  d;
226 <        register int    hd;
226 >        int     hd;
227  
228          for (hd = 0; hd < HDMAX && hdlist[hd] != NULL; hd++)
229                  ;
# Line 257 | Line 257 | add_holo(              /* register a new holodeck section */
257  
258   static void
259   disp_bundle(                    /* display a ray bundle */
260 <        register PACKHEAD       *p
260 >        PACKHEAD        *p
261   )
262   {
263          GCOORD  gc[2];
264          FVECT   ro, rd, wp;
265          double  d;
266 <        register int    i;
266 >        int     i;
267                                          /* get beam coordinates */
268          if ((p->hd < 0) | (p->hd >= HDMAX) || hdlist[p->hd] == NULL)
269                  error(INTERNAL, "bad holodeck number in disp_bundle");
# Line 288 | Line 288 | disp_bundle(                   /* display a ray bundle */
288  
289   static void
290   new_view(                       /* change view parameters */
291 <        register VIEW   *v
291 >        VIEW    *v
292   )
293   {
294          static VIEW     viewhist[VIEWHISTLEN];
# Line 422 | Line 422 | usr_input(void)                        /* get user input and process it */
422   {
423          VIEW    vparams;
424          char    cmd[256];
425 <        register char   *args;
426 <        register int    i;
425 >        char    *args;
426 >        int     i;
427  
428          if (fgets(cmd, sizeof(cmd), sstdin) == NULL) {
429                  fclose(sstdin);
# Line 499 | Line 499 | printview(void)                        /* print our current view to server
499   }
500  
501  
502 < extern int
502 > int
503   serv_result(void)                       /* get next server result and process it */
504   {
505          static char     *buf = NULL;
# Line 576 | Line 576 | readerr:
576   }
577  
578  
579 < extern void
579 > void
580   serv_request(   /* send a request to the server process */
581          int     type,
582          int     nbytes,
# Line 607 | Line 607 | serv_request(  /* send a request to the server process
607  
608   void
609   eputs(                  /* put error message to stderr */
610 <        register char  *s
610 >        char  *s
611   )
612   {
613          static int  midline = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines