| 26 |
|
#include "rtio.h" |
| 27 |
|
|
| 28 |
|
#ifndef NHASH |
| 29 |
+ |
#ifdef SMLMEM |
| 30 |
|
#define NHASH 2039 /* hash table size (prime!) */ |
| 31 |
+ |
#else |
| 32 |
+ |
#define NHASH 17117 /* hash table size (prime!) */ |
| 33 |
|
#endif |
| 34 |
+ |
#endif |
| 35 |
|
|
| 36 |
|
typedef struct s_head { |
| 37 |
|
struct s_head *next; /* next in hash list */ |
| 50 |
|
|
| 51 |
|
|
| 52 |
|
char * |
| 53 |
< |
savestr(char *str) /* save a string */ |
| 53 |
> |
savestr(const char *str) /* save a string */ |
| 54 |
|
{ |
| 55 |
|
int hval; |
| 56 |
|
S_HEAD *sp; |
| 101 |
|
|
| 102 |
|
|
| 103 |
|
int |
| 104 |
< |
shash(char *s) |
| 104 |
> |
shash(const char *s) |
| 105 |
|
{ |
| 106 |
|
int h = 0; |
| 107 |
|
|