stringstore.h

Mon, 17 Jan 2005 22:02:09 +0100

author
tuomov
date
Mon, 17 Jan 2005 22:02:09 +0100
changeset 85
9f94b2e96e3b
parent 74
60cb620a0341
child 104
abbac137bdac
permissions
-rw-r--r--

trunk: changeset 1934
Fixed everything that requires locale stuff to check CF_NO_LOCALE.

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