home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
printer
/
proff.arc
/
LOOKUP.H
< prev
next >
Wrap
Text File
|
1988-02-12
|
585b
|
28 lines
/*
* from K&R "The C Programming language"
* Table lookup routines
* structure and definitions
*
*/
/* basic table entry */
struct hashlist {
char *name;
char *def;
struct hashlist *next; /* next in chain */
};
/* basic table entry */
struct lexlist {
char *name;
int val; /* lexical value */
int flag; /* optional flag val */
struct lexlist *link; /* next in chain */
};
#define HASHMAX 100 /* size of hashtable */
extern struct
lexlist (*(*lextable))[];/* global pointer for lexical analyser hash table */