1 #ifndef STRINGS_H_
2 #define STRINGS_H_
3 
4 #include <string.h>
5 
6 typedef struct _xmls {
7     char *s;
8     size_t len;
9     size_t allocated;
10     unsigned long hash;
11 } *XMLSTRING;
12 
13 XMLSTRING xmls_new(size_t bsize);
14 
15 XMLSTRING xmls_new_string(const char *s, size_t length);
16 
17 XMLSTRING xmls_new_string_literal(const char *s);
18 
19 int xmls_equals(XMLSTRING a, XMLSTRING b);
20 
21 #endif
22