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

Comparing ray/src/px/psign.c (file contents):
Revision 2.19 by schorsch, Thu Jun 5 19:29:34 2003 UTC vs.
Revision 2.22 by schorsch, Mon Jun 30 14:59:12 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7   *      7/1/87
8   */
9  
10 + #include  "copyright.h"
11 +
12 + #include  <string.h>
13 +
14   #include  "standard.h"
15 + #include  "platform.h"
16   #include  "color.h"
17   #include  "font.h"
18  
# Line 33 | Line 38 | unsigned char  *ourbitmap;             /* our output bitmap */
38   int  xsiz, ysiz;                        /* bitmap dimensions */
39   int  xdim;                              /* size of horizontal scan (bytes) */
40  
41 +                                /* conflicting def's in param.h */
42 + #undef  tstbit
43 + #undef  setbit
44 + #undef  clrbit
45 + #undef  tglbit
46 +
47   #define  bitop(x,y,op)          (ourbitmap[(y)*xdim+((x)>>3)] op (1<<((x)&7)))
48   #define  tstbit(x,y)            bitop(x,y,&)
49   #define  setbit(x,y)            bitop(x,y,|=)
# Line 197 | Line 208 | makemap()                      /* create the bit map */
208          ourbitmap = (BYTE *)bmalloc(ysiz*xdim);
209          if (ourbitmap == NULL)
210                  error(SYSTEM, "Out of memory in makemap");
211 <        bzero((char *)ourbitmap, ysiz*xdim);
211 >        memset((char *)ourbitmap, '\0', ysiz*xdim);
212   }
213  
214  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines