diff options
author | truelight <truelight@openttd.org> | 2004-09-11 09:55:19 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-09-11 09:55:19 +0000 |
commit | 7aa0bdf48b8f27389ad69c4299b8d910398c43d5 (patch) | |
tree | 2e17fa3fbbc0602115bc187deb458d519077a76d /queue.c | |
parent | 4ccd84f94b844388d4fab8413bdf77e5580526fe (diff) | |
download | openttd-7aa0bdf48b8f27389ad69c4299b8d910398c43d5.tar.xz |
(svn r202) -Codechange: I missed some files with trailing spaces.. this should be
all ;)
Diffstat (limited to 'queue.c')
-rw-r--r-- | queue.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -150,7 +150,7 @@ void InsSort_Clear(Queue* q, bool free_values) { prev = node; node = node->next; free(prev); - + } q->data.inssort.first = NULL; } @@ -283,7 +283,7 @@ bool BinaryHeap_Push(Queue* q, void* item, int priority) { if (q->data.binaryheap.size == q->data.binaryheap.max_size) return false; assert(q->data.binaryheap.size < q->data.binaryheap.max_size); - + if (q->data.binaryheap.elements[q->data.binaryheap.size >> BINARY_HEAP_BLOCKSIZE_BITS] == NULL) { /* The currently allocated blocks are full, allocate a new one */ assert((q->data.binaryheap.size & BINARY_HEAP_BLOCKSIZE_MASK) == 0); @@ -466,14 +466,14 @@ void delete_Hash(Hash* h, bool free_values) { if (h->buckets_in_use[i]) { HashNode* node; /* Free the first value */ - if (free_values) + if (free_values) free(h->buckets[i].value); node = h->buckets[i].next; while (node != NULL) { HashNode* prev = node; node = node->next; /* Free the value */ - if (free_values) + if (free_values) free(prev->value); /* Free the node */ free(prev); |