Displaying 2 results from an estimated 2 matches for "bitmapsize".
Did you mean:
bitmap_size
2000 May 02
0
patch for .samba-2.0.7/source/lib/bitmap.c
...aps );
+
+
/****************************************************************************
allocate a bitmap of the specified size
****************************************************************************/
struct bitmap *bitmap_allocate(int n)
{
- struct bitmap *bm;
+ size_t structsize, bitmapsize;
+ struct bitmap *bm;
- bm = (struct bitmap *)malloc(sizeof(*bm));
+ structsize = ( sizeof(*bm) + BITMAP_ALIGN - 1 )&( ~( BITMAP_ALIGN - 1));
+ bitmapsize = ( sizeof( bm->b[0] ) * ( n + UINT32_BITS-1 )/ UINT32_BITS );
- if (!bm) return NULL;
-
- bm->n = n;
- bm->b = (ui...
2007 Apr 28
6
XRC Problem
...ContactList_statusbar">
<fields>1</fields>
<style>wxST_SIZEGRIP</style>
<widths>-1</widths>
</object>
<object class="wxToolBar" name="ContactList_toolbar">
<bitmapsize>32, 31</bitmapsize>
<style>wxTB_FLAT|wxTB_HORIZONTAL</style>
<object class="tool" name="tbAddContact">
<label>Add Contact</label>
<tooltip>Add a Contact</tooltip>...