2014-08-22 08:36:26 +02:00
|
|
|
/* vim: set ts=4 sw=4 tw=99 et: */
|
|
|
|
#ifndef _INCLUDE_SPCOMP_SYMHASH_H_
|
|
|
|
#define _INCLUDE_SPCOMP_SYMHASH_H_
|
|
|
|
|
2014-08-22 09:53:47 +02:00
|
|
|
uint32_t NameHash(const char *str);
|
2014-08-22 08:36:26 +02:00
|
|
|
|
|
|
|
struct HashTable;
|
|
|
|
|
2014-08-22 09:53:47 +02:00
|
|
|
HashTable *NewHashTable();
|
|
|
|
void DestroyHashTable(HashTable *ht);
|
|
|
|
void AddToHashTable(HashTable *ht, symbol *sym);
|
|
|
|
void RemoveFromHashTable(HashTable *ht, symbol *sym);
|
|
|
|
symbol *FindInHashTable(HashTable *ht, const char *name, int fnumber);
|
|
|
|
symbol *FindTaggedInHashTable(HashTable *ht, const char *name, int fnumber,
|
2014-08-22 08:36:26 +02:00
|
|
|
int *cmptag);
|
|
|
|
|
|
|
|
#endif /* _INCLUDE_SPCOMP_SYMHASH_H_ */
|
|
|
|
|