1115013Smarcel/*
2160157SmarcelCopyright (c) 2003-2006 Hewlett-Packard Development Company, L.P.
3121642SmarcelPermission is hereby granted, free of charge, to any person
4121642Smarcelobtaining a copy of this software and associated documentation
5121642Smarcelfiles (the "Software"), to deal in the Software without
6121642Smarcelrestriction, including without limitation the rights to use,
7121642Smarcelcopy, modify, merge, publish, distribute, sublicense, and/or sell
8121642Smarcelcopies of the Software, and to permit persons to whom the
9121642SmarcelSoftware is furnished to do so, subject to the following
10121642Smarcelconditions:
11115013Smarcel
12121642SmarcelThe above copyright notice and this permission notice shall be
13121642Smarcelincluded in all copies or substantial portions of the Software.
14121642Smarcel
15121642SmarcelTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16121642SmarcelEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17121642SmarcelOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18121642SmarcelNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19121642SmarcelHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20121642SmarcelWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21121642SmarcelFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22121642SmarcelOTHER DEALINGS IN THE SOFTWARE.
23121642Smarcel*/
24121642Smarcel
25160157Smarcel#define STRPOOLSIZE (400-sizeof(void *)-2*sizeof(int))
26115013Smarcel
27115013Smarcelstruct uwx_str_pool {
28115013Smarcel    struct uwx_str_pool *next;
29115013Smarcel    int size;
30115013Smarcel    int used;
31115013Smarcel    char pool[STRPOOLSIZE];
32115013Smarcel};
33115013Smarcel
34160157Smarcelextern int uwx_init_str_pool(struct uwx_env *env, struct uwx_str_pool *pool);
35115013Smarcelextern void uwx_free_str_pool(struct uwx_env *env);
36115013Smarcelextern char *uwx_alloc_str(struct uwx_env *env, char *str);
37115013Smarcelextern void uwx_reset_str_pool(struct uwx_env *env);
38