| 23 |
|
#include <string.h> |
| 24 |
|
#include <stdlib.h> |
| 25 |
|
|
| 26 |
< |
#include "standard.h" |
| 26 |
> |
#include "rtmisc.h" |
| 27 |
> |
#include "rterror.h" |
| 28 |
> |
#include "rtio.h" |
| 29 |
|
|
| 30 |
|
#ifndef NHASH |
| 31 |
|
#define NHASH 509 /* hash table size (prime!) */ |
| 48 |
|
|
| 49 |
|
|
| 50 |
|
char * |
| 51 |
< |
savestr(str) /* save a string */ |
| 50 |
< |
char *str; |
| 51 |
> |
savestr(char *str) /* save a string */ |
| 52 |
|
{ |
| 53 |
|
register int hval; |
| 54 |
|
register S_HEAD *sp; |
| 74 |
|
|
| 75 |
|
|
| 76 |
|
void |
| 77 |
< |
freestr(s) /* free a string */ |
| 77 |
< |
char *s; |
| 77 |
> |
freestr(char *s) /* free a string */ |
| 78 |
|
{ |
| 79 |
|
int hval; |
| 80 |
|
register S_HEAD *spl, *sp; |
| 97 |
|
|
| 98 |
|
|
| 99 |
|
int |
| 100 |
< |
shash(s) |
| 101 |
< |
register char *s; |
| 100 |
> |
shash(register char *s) |
| 101 |
|
{ |
| 102 |
|
register int h = 0; |
| 103 |
|
|