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

Comparing ray/src/common/malloc.c (file contents):
Revision 2.8 by greg, Thu Oct 8 12:27:02 1992 UTC vs.
Revision 2.10 by greg, Fri Nov 10 17:04:15 1995 UTC

# Line 27 | Line 27 | static char SCCSid[] = "$SunId$ LBL";
27   #ifndef  BSD
28   #define  bcopy(s,d,n)           (void)memcpy(d,s,n)
29   #define  bzero(d,n)             (void)memset(d,0,n)
30 extern char  *memcpy(), *memset();
30   #endif
31  
32   #ifdef MSTATS
# Line 160 | Line 159 | unsigned       *np;
159  
160          for ( ; ; ) {
161                                          /* compact free lists */
162 <                compactfree();
162 >                while (compactfree())
163 >                        ;
164                                          /* find largest block */
165                  tab = mtab(&cptab); tablen = mtablen(&cptab);
166                  big = tab;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines