mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:20:11 +01:00
338571d299
Change-Id: Ifdf5736620632cb5eabb745b9d3ee1f830478826 Signed-off-by: SJ <sj@acts.hu>
21 lines
428 B
C
21 lines
428 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(char *s);
|
|
int addnode(struct node *xhash[], char *s);
|
|
struct node *findnode(struct node *xhash[], char *s);
|
|
int is_substr_in_hash(struct node *xhash[], char *s);
|
|
unsigned int DJBHash(char* str, unsigned int len);
|
|
|
|
#endif /* _HASH_H */
|