Changeset 371 for trunk/src/comctl32/treeview.c
- Timestamp:
- Jul 23, 1999, 5:54:34 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/treeview.c
r295 r371 1 /* $Id: treeview.c,v 1. 8 1999-07-12 15:58:49cbratschi Exp $ */1 /* $Id: treeview.c,v 1.9 1999-07-23 15:54:34 cbratschi Exp $ */ 2 2 /* Treeview control 3 3 * … … 42 42 */ 43 43 44 /* CB: todo45 - fix ffs();46 */47 48 44 #include <string.h> 49 45 #include "winbase.h" … … 1481 1477 } 1482 1478 1479 int ffs(int mask) 1480 { 1481 int bit; 1482 1483 if (mask == 0) 1484 return(0); 1485 for (bit = 1; !(mask & 1); bit++) 1486 mask >>= 1; 1487 return(bit); 1488 } 1483 1489 1484 1490 /* the method used below isn't the most memory-friendly, but it avoids … … 1540 1546 for (i=0; i<infoPtr->uNumPtrsAlloced>>5; i++) { 1541 1547 if (infoPtr->freeList[i]) { 1542 // WHAT IS FFS? NOT IN VAC++ C LIBRARY!!! 1543 // iItem=ffs (infoPtr->freeList[i])-1; 1544 // 1548 iItem=ffs (infoPtr->freeList[i])-1; 1549 1545 1550 tv_clear_bit(iItem,&infoPtr->freeList[i]); 1546 1551 iItem+=i<<5;
Note:
See TracChangeset
for help on using the changeset viewer.