Commit | Line | Data |
---|---|---|
e1a1d2b4 C |
1 | /* |
2 | * Copyright (c) 1993 David I. Bell | |
3 | * Permission is granted to use, distribute, or modify this source, | |
4 | * provided that this copyright notice remains intact. | |
5 | */ | |
6 | ||
7 | #ifndef CALCSTRING_H | |
8 | #define CALCSTRING_H | |
9 | ||
10 | #include "zmath.h" | |
11 | ||
12 | ||
13 | typedef struct { | |
14 | char *h_list; /* list of strings separated by nulls */ | |
15 | long h_used; /* characters used so far */ | |
16 | long h_avail; /* characters available for use */ | |
17 | long h_count; /* number of strings */ | |
18 | } STRINGHEAD; | |
19 | ||
20 | ||
21 | extern void initstr MATH_PROTO((STRINGHEAD *hp)); | |
22 | extern char *addstr MATH_PROTO((STRINGHEAD *hp, char *str)); | |
23 | extern char *namestr MATH_PROTO((STRINGHEAD *hp, long n)); | |
24 | extern long findstr MATH_PROTO((STRINGHEAD *hp, char *str)); | |
25 | extern char *charstr MATH_PROTO((int ch)); | |
26 | extern char *addliteral MATH_PROTO((char *str)); | |
27 | extern long stringindex MATH_PROTO((char *str1, char *str2)); | |
28 | extern HASH hashstr MATH_PROTO((char *cp)); | |
29 | ||
30 | #endif | |
31 | ||
32 | /* END CODE */ |