stringstore.h

Tue, 17 Oct 2006 00:32:05 +0200

author
Tuomo Valkonen <tuomov@iki.fi>
date
Tue, 17 Oct 2006 00:32:05 +0200
changeset 103
76174c5f04b5
parent 74
60cb620a0341
child 104
abbac137bdac
permissions
-rw-r--r--

Path fix

73
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
1 /*
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
2 * libtu/stringstore.h
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
3 *
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
4 * Copyright (c) Tuomo Valkonen 2004.
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
5 *
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
6 * You may distribute and modify this library under the terms of either
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
7 * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
8 */
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
9
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
10 #ifndef LIBTU_STRINGSTORE_H
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
11 #define LIBTU_STRINGSTORE_H
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
12
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
13 typedef void* StringId;
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
14
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
15 #define STRINGID_NONE ((StringId)0)
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
16
74
60cb620a0341 trunk: changeset 1575
tuomov
parents: 73
diff changeset
17 extern const char *stringstore_get(StringId id);
73
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
18 extern StringId stringstore_find(const char *str);
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
19 extern StringId stringstore_alloc(const char *str);
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
20 extern void stringstore_free(StringId id);
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
21
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
22 #endif /* LIBTU_STRINGSTORE_H */

mercurial