More whitespace cleanup all over the place.
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Archiving hook methods
|
// Archiving hook methods
|
||||||
virtual status_t AllArchived(BMessage* archive) const;
|
virtual status_t AllArchived(BMessage* archive) const;
|
||||||
virtual status_t AllUnarchived(const BMessage* from);
|
virtual status_t AllUnarchived(const BMessage* from);
|
||||||
|
|
||||||
virtual status_t ItemArchived(BMessage* into, BLayoutItem* item,
|
virtual status_t ItemArchived(BMessage* into, BLayoutItem* item,
|
||||||
|
|||||||
@@ -448,7 +448,7 @@ extern status_t _kern_close_port(port_id id);
|
|||||||
extern status_t _kern_delete_port(port_id id);
|
extern status_t _kern_delete_port(port_id id);
|
||||||
extern port_id _kern_find_port(const char *port_name);
|
extern port_id _kern_find_port(const char *port_name);
|
||||||
extern status_t _kern_get_port_info(port_id id, struct port_info *info);
|
extern status_t _kern_get_port_info(port_id id, struct port_info *info);
|
||||||
extern status_t _kern_get_next_port_info(team_id team, int32 *cookie,
|
extern status_t _kern_get_next_port_info(team_id team, int32 *cookie,
|
||||||
struct port_info *info);
|
struct port_info *info);
|
||||||
extern ssize_t _kern_port_buffer_size_etc(port_id port, uint32 flags,
|
extern ssize_t _kern_port_buffer_size_etc(port_id port, uint32 flags,
|
||||||
bigtime_t timeout);
|
bigtime_t timeout);
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ BCardLayout::DoLayout()
|
|||||||
size.height = max_c(size.height, fMin.height);
|
size.height = max_c(size.height, fMin.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fVisibleItem != NULL)
|
if (fVisibleItem != NULL)
|
||||||
fVisibleItem->AlignInFrame(BRect(LayoutArea().LeftTop(), size));
|
fVisibleItem->AlignInFrame(BRect(LayoutArea().LeftTop(), size));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,9 +26,11 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|
||||||
|
|
||||||
#define MAGIC1 0x9183f4d9
|
#define MAGIC1 0x9183f4d9
|
||||||
#define MAGIC2 0xa6b3c87d
|
#define MAGIC2 0xa6b3c87d
|
||||||
|
|
||||||
|
|
||||||
struct BBlockCache::_FreeBlock {
|
struct BBlockCache::_FreeBlock {
|
||||||
DEBUG_ONLY( uint32 magic1; )
|
DEBUG_ONLY( uint32 magic1; )
|
||||||
_FreeBlock *next;
|
_FreeBlock *next;
|
||||||
@@ -42,13 +44,13 @@ struct BBlockCache::_FreeBlock {
|
|||||||
// Thus we need to create multiple small ones.
|
// Thus we need to create multiple small ones.
|
||||||
// We maintain a list of free blocks.
|
// We maintain a list of free blocks.
|
||||||
|
|
||||||
BBlockCache::BBlockCache(uint32 blockCount,
|
BBlockCache::BBlockCache(uint32 blockCount, size_t blockSize,
|
||||||
size_t blockSize,
|
uint32 allocationType)
|
||||||
uint32 allocationType)
|
:
|
||||||
: fFreeList(0),
|
fFreeList(0),
|
||||||
fBlockSize(blockSize),
|
fBlockSize(blockSize),
|
||||||
fFreeBlocks(0),
|
fFreeBlocks(0),
|
||||||
fBlockCount(blockCount),
|
fBlockCount(blockCount),
|
||||||
fLocker("some BBlockCache lock"),
|
fLocker("some BBlockCache lock"),
|
||||||
fAlloc(0),
|
fAlloc(0),
|
||||||
fFree(0)
|
fFree(0)
|
||||||
@@ -87,6 +89,7 @@ BBlockCache::BBlockCache(uint32 blockCount,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
BBlockCache::~BBlockCache()
|
BBlockCache::~BBlockCache()
|
||||||
{
|
{
|
||||||
// walk the free list and deallocate all blocks
|
// walk the free list and deallocate all blocks
|
||||||
@@ -102,6 +105,7 @@ BBlockCache::~BBlockCache()
|
|||||||
fLocker.Unlock();
|
fLocker.Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void *
|
void *
|
||||||
BBlockCache::Get(size_t blockSize)
|
BBlockCache::Get(size_t blockSize)
|
||||||
{
|
{
|
||||||
@@ -126,6 +130,7 @@ BBlockCache::Get(size_t blockSize)
|
|||||||
return pointer;
|
return pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BBlockCache::Save(void *pointer, size_t blockSize)
|
BBlockCache::Save(void *pointer, size_t blockSize)
|
||||||
{
|
{
|
||||||
@@ -146,5 +151,6 @@ BBlockCache::Save(void *pointer, size_t blockSize)
|
|||||||
fLocker.Unlock();
|
fLocker.Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void BBlockCache::_ReservedBlockCache1() {}
|
void BBlockCache::_ReservedBlockCache1() {}
|
||||||
void BBlockCache::_ReservedBlockCache2() {}
|
void BBlockCache::_ReservedBlockCache2() {}
|
||||||
|
|||||||
Reference in New Issue
Block a user