mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 08:32:00 +01:00
21 lines
431 B
C
21 lines
431 B
C
/*
|
|
* hash.h, SJ
|
|
*/
|
|
|
|
#ifndef _HASH_H
|
|
#define _HASH_H
|
|
|
|
#include "cfg.h"
|
|
#include "defs.h"
|
|
|
|
|
|
void inithash(struct node *xhash[]);
|
|
void clearhash(struct node *xhash[]);
|
|
struct node *makenewnode(struct node *xhash[], char *s);
|
|
int addnode(struct node *xhash[], char *s);
|
|
struct node *findnode(struct node *xhash[], char *s);
|
|
inline int hash(unsigned int key);
|
|
unsigned int DJBHash(char* str, unsigned int len);
|
|
|
|
#endif /* _HASH_H */
|