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.19 by gwlarson, Wed Aug 12 17:55:11 1998 UTC vs.
Revision 3.21 by gwlarson, Thu Oct 22 08:47:40 1998 UTC

# Line 16 | Line 16 | static char SCCSid[] = "$SunId$ SGI";
16   #define HDSUF   ".hdi"
17   #endif
18  
19 + #ifndef FNONBLK
20 + #define FNONBLK         O_NONBLOCK
21 + #endif
22 +
23   static int      inp_flags;
24   static int      dpd[3];
25   static FILE     *dpout;
# Line 105 | Line 109 | int    block;
109                  return(2);              /* acceptable failure */
110          }
111          if (msg.nbytes) {               /* get the message body */
112 +                if (msg.nbytes < 0)
113 +                        error(INTERNAL, "anti-message from display process");
114                  buf = (char *)malloc(msg.nbytes);
115                  if (buf == NULL)
116                          error(SYSTEM, "out of memory in disp_check");
# Line 229 | Line 235 | int    type, nbytes;
235   char    *p;
236   {
237          MSGHEAD msg;
238 <
238 >                                        /* consistency checks */
239 > #ifdef DEBUG
240 >        if (nbytes < 0 || nbytes > 0 & p == NULL)
241 >                error(CONSISTENCY, "bad buffer handed to disp_result");
242 > #endif
243          if (dpout == NULL)
244                  return;
245          msg.type = type;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines