1 /*
2 * fontconfig/src/fcobjshash.gperf.h
3 *
4 * Copyright © 2000 Keith Packard
5 *
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of the author(s) not be used in
11 * advertising or publicity pertaining to distribution of the software without
12 * specific, written prior permission. The authors make no
13 * representations about the suitability of this software for any purpose. It
14 * is provided "as is" without express or implied warranty.
15 *
16 * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 * PERFORMANCE OF THIS SOFTWARE.
23 */
24 %{
25 CUT_OUT_BEGIN
26 #include <fontconfig/fontconfig.h>
27 CUT_OUT_END
28 %}
29 %struct-type
30 %language=ANSI-C
31 %includes
32 %enum
33 %readonly-tables
34 %define slot-name name
35 %define hash-function-name FcObjectTypeHash
36 %define lookup-function-name FcObjectTypeLookup
37
38 %pic
39 %define string-pool-name FcObjectTypeNamePool
40
41 struct FcObjectTypeInfo {
42 int name;
43 int id;
44 };
45
46 %%
47 #define FC_OBJECT(NAME, Type, Cmp) FC_##NAME, FC_##NAME##_OBJECT
48 #include "fcobjs.h"
49 #undef FC_OBJECT