- Backported the classnames-are-names changes from the FP code.

SVN r97 (trunk)
This commit is contained in:
Randy Heit 2006-05-10 02:40:43 +00:00
commit d878c2e7d6
108 changed files with 1476 additions and 1053 deletions

View file

@ -99,8 +99,8 @@ int FName::NameManager::FindName (const char *text, bool noCreate)
return 0;
}
DWORD hash = MakeKey (text);
DWORD bucket = hash % HASH_SIZE;
unsigned int hash = MakeKey (text);
unsigned int bucket = hash % HASH_SIZE;
int scanner = Buckets[bucket];
// See if the name already exists.
@ -150,7 +150,7 @@ void FName::NameManager::InitBuckets ()
//
//==========================================================================
int FName::NameManager::AddName (const char *text, DWORD hash, DWORD bucket)
int FName::NameManager::AddName (const char *text, unsigned int hash, unsigned int bucket)
{
char *textstore;
NameBlock *block = Blocks;