1 /* m17n-misc.h -- header file for the MISC API.
2 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
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., 51 Franklin Street, Fifth Floor,
27 #include <m17n-core.h>
32 /*** @defgroup m17nMisc MISC API */
33 /***en @brief Miscellaneous API */
34 /***ja @brief ¤½¤Î¾¤Î API */
36 /*** @ingroup m17nMisc */
37 /***en @defgroup m17nError Error Handling */
38 /***ja @defgroup m17nError ¥¨¥é¡¼½èÍý */
41 /*** @ingroup m17nError */
43 @brief Enumeration for error code of the m17n library.
45 Enumeration for error code of the m17n library.
47 When a library function is called with an invalid argument, it
48 sets the external variable #merror_code to one of these values.
49 All the error codes are positive integers.
51 When a memory allocation error happens, the function pointed to by
52 the external variable #m17n_memory_full_handler is called with one
53 of these values as an argument. */
56 @brief m17n ¥é¥¤¥Ö¥é¥ê¥¨¥é¡¼¥³¡¼¥É¤ÎÎóµó.
58 m17n ¥é¥¤¥Ö¥é¥ê¥¨¥é¡¼¥³¡¼¥É¤ÎÎóµó
60 ¥é¥¤¥Ö¥é¥ê¤Î´Ø¿ô¤¬ÂÅÅö¤Ç¤Ê¤¤°ú¿ô¤È¤È¤â¤Ë¸Æ¤Ð¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢ÊÑ¿ô
61 #merror_code ¤ò¤³¤ì¤é¤ÎÃͤΤɤ줫¤Ë¥»¥Ã¥È¤¹¤ë¡£¤¹¤Ù¤Æ¤Î¥¨¥é¡¼¥³¡¼¥É¤ÏÀµ¤ÎÀ°¿ô¤Ç¤¢¤ë¡£
63 ¥á¥â¥ê³äÅö¤Æ¥¨¥é¡¼¤ÎºÝ¤Ë¤Ï¡¢³°ÉôÊÑ¿ô #m17n_memory_full_handler
64 ¤Î»Ø¤¹´Ø¿ô¤¬¡¢¤³¤ì¤é¤ÎÃͤΤ¦¤Á¤Î¤É¤ì¤«¤ò°ú¿ô¤È¤·¤Æ¸Æ¤Ð¤ì¤ë¡£
105 extern void (*m17n_memory_full_handler) (enum MErrorCode err);
108 /*** @ingroup m17nMisc */
109 /***en @defgroup m17nDebug Debugging */
110 /***ja @defgroup m17nDebug ¥Ç¥Ð¥Ã¥°¥µ¥Ý¡¼¥È */
113 extern int mdebug_hook (void);
115 extern MSymbol mdebug_dump_symbol (MSymbol sym, int indent);
116 extern MSymbol mdebug_dump_all_symbols (int indent);
117 extern MPlist *mdebug_dump_plist (MPlist *plist, int indent);
118 extern MText *mdebug_dump_mtext (MText *mt, int fullp, int indent);
119 extern MCharTable *mdebug_dump_chartab (MCharTable *table, int indent);
121 #ifdef DOXYGEN_INTERNAL_MODULE
122 /***en @defgroup m17nInternal Internal */
123 /***ja @defgroup m17nInternal Internal */
128 #endif /* _M17N_ERR_H_ */