The Great Embooleanating

A large number of functions had return values and/or arguments changed
to use ``bool`` types instead of ``int``.
This commit is contained in:
Tim Wojtulewicz 2020-03-11 10:41:46 -07:00 committed by Robin Sommer
parent 3c470ffe13
commit fd5e15b116
145 changed files with 1288 additions and 1331 deletions

View file

@ -42,7 +42,7 @@ public:
// that it's a heap pointer that now belongs to the Dictionary to
// manage as needed.
void* Insert(void* key, int key_size, hash_t hash, void* val,
int copy_key);
bool copy_key);
// Removes the given element. Returns a pointer to the element in
// case it needs to be deleted. Returns 0 if no such element exists.
@ -125,13 +125,13 @@ private:
void DeInit();
// Internal version of Insert().
void* Insert(DictEntry* entry, int copy_key);
void* Insert(DictEntry* entry, bool copy_key);
void* DoRemove(DictEntry* entry, hash_t h,
PList<DictEntry>* chain, int chain_offset);
int NextPrime(int n) const;
int IsPrime(int n) const;
bool IsPrime(int n) const;
void StartChangeSize(int new_size);
void FinishChangeSize();
void MoveChains();