get rid of old fashioned registers

This commit is contained in:
Vítor Santos Costa 2013-11-07 23:50:04 +00:00
parent 810a7faf4e
commit 2badc98c75

View File

@ -157,14 +157,15 @@ SearchWideAtom(wchar_t *p, Atom a) {
static Atom
LookupAtom(char *atom)
{ /* lookup atom in atom table */
register CELL hash;
register unsigned char *p;
UInt hash;
unsigned char *p;
Atom a, na;
AtomEntry *ae;
/* compute hash */
p = (unsigned char *)atom;
hash = HashFunction(p) % AtomHashTableSize;
/* we'll start by holding a read lock in order to avoid contention */
READ_LOCK(HashChain[hash].AERWLock);
a = HashChain[hash].Entry;