1 /* symbol.h -- header file for the symbol module.
2 Copyright (C) 2003, 2004
3 National Institute of Advanced Industrial Science and Technology (AIST)
4 Registration Number H15PRO112
6 This file is part of the m17n library.
8 The m17n library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public License
10 as published by the Free Software Foundation; either version 2.1 of
11 the License, or (at your option) any later version.
13 The m17n library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public
19 License along with the m17n library; if not, write to the Free
20 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
23 #ifndef _M17N_SYMBOL_H_
24 #define _M17N_SYMBOL_H_
30 /** 1 iff a value of property (including text-property) whose key is
31 the symbol is a managed object. */
32 unsigned managing_key : 1;
34 /* Name of the symbol. */
37 /* Byte length of <name>. */
40 /* Plist of the symbol. */
43 struct MSymbolStruct *next;
46 #define MSYMBOL_NAME(sym) ((sym)->name)
47 #define MSYMBOL_NAMELEN(sym) ((sym)->length - 1)
49 extern MSymbol msymbol__with_len (const char *name, int len);
51 extern MSymbol msymbol__canonicalize (MSymbol sym);
53 extern MTextPropSerializeFunc msymbol__serializer;
54 extern MTextPropDeserializeFunc msymbol__deserializer;
56 #endif /* _M17N_SYMBOL_H_ */