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

Comparing ray/src/hd/rholo4.c (file contents):
Revision 3.36 by schorsch, Thu Jan 1 11:21:55 2004 UTC vs.
Revision 3.38 by greg, Fri Oct 5 19:19:16 2018 UTC

# Line 30 | Line 30 | static void disp_flush(void);
30   static void disp_result(int type, int nbytes, char *p);
31  
32  
33 < extern void
33 > void
34   disp_open(              /* open the named display driver */
35          char    *dname
36   )
# Line 98 | Line 98 | disp_open(             /* open the named display driver */
98   }
99  
100  
101 < extern void
101 > void
102   disp_packet(                    /* display a packet */
103 <        register PACKHEAD       *p
103 >        PACKHEAD        *p
104   )
105   {
106          disp_result(DS_BUNDLE, packsiz(p->nr), (char *)p);
107   }
108  
109  
110 < extern int
110 > int
111   disp_check(             /* check display process */
112          int     block
113   )
# Line 251 | Line 251 | readerr:
251   }
252  
253  
254 < extern int
254 > int
255   disp_close(void)                        /* close our display process */
256   {
257          if (dpout == NULL)
# Line 282 | Line 282 | disp_result(   /* queue result message to display proces
282                  return;
283          msg.type = type;
284          msg.nbytes = nbytes;
285 <        fwrite((char *)&msg, sizeof(MSGHEAD), 1, dpout);
285 >        putbinary(&msg, sizeof(MSGHEAD), 1, dpout);
286          if (nbytes > 0)
287 <                fwrite(p, 1, nbytes, dpout);
287 >                putbinary(p, 1, nbytes, dpout);
288   }
289  
290  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines