-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnmetab.h
59 lines (40 loc) · 1.33 KB
/
nmetab.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* ###############################################################
##
## C Tree Builder
##
## File: nmetab.h
##
## Programmer: Shawn Flisakowski
## Date: Jan 11, 1995
##
##
############################################################### */
#ifndef NMETAB_H
#define NMETAB_H
#include "config.h"
BEGIN_HEADER
#define MAX_HASH_BCKTS 511
/* ############################################################### */
typedef struct string_str {
unsigned int hash;
char *str;
} str_t;
/* ############################################################### */
typedef struct hi {
str_t sym;
struct hi *next;
} HashItem;
#define HASH_ITEM_SZE (sizeof(HashItem))
/* ############################################################### */
extern HashItem *NmeTab[MAX_HASH_BCKTS];
/* ############################################################### */
void init_nmetab ARGS((void));
void free_nmetab ARGS((void));
int nme_equal ARGS(( str_t *This, str_t *that ));
str_t *nmelook ARGS(( char *sym, int len ));
int nmehash ARGS(( str_t *sym ));
void nmeshow ARGS((void));
char *nmestr ARGS(( str_t *sym ));
/* ############################################################### */
END_HEADER
#endif /* NMETAB_H */