/usr/include/m17n-misc.h is in libm17n-dev 1.7.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | /* m17n-misc.h -- header file for the MISC API.
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
National Institute of Advanced Industrial Science and Technology (AIST)
Registration Number H15PRO112
This file is part of the m17n library.
The m17n library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.
The m17n library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the m17n library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
02111-1307, USA. */
#ifndef _M17N_ERR_H_
#define _M17N_ERR_H_
#ifndef _M17N_CORE_H_
#include <m17n-core.h>
#endif
M17N_BEGIN_HEADER
/*** @defgroup m17nMisc MISC API */
/***en @brief Miscellaneous API */
/***ja @brief ¤½¤Î¾¤Î API */
/*=*/
/*** @ingroup m17nMisc */
/***en @defgroup m17nError Error Handling */
/***ja @defgroup m17nError ¥¨¥é¡¼½èÍý */
/*=*/
/*** @ingroup m17nError */
/***en
@brief Enumeration for error code of the m17n library.
Enumeration for error code of the m17n library.
When a library function is called with an invalid argument, it
sets the external variable #merror_code to one of these values.
All the error codes are positive integers.
When a memory allocation error happens, the function pointed to by
the external variable #m17n_memory_full_handler is called with one
of these values as an argument. */
/***ja
@brief m17n ¥é¥¤¥Ö¥é¥ê¥¨¥é¡¼¥³¡¼¥É¤ÎÎóµó.
m17n ¥é¥¤¥Ö¥é¥ê¥¨¥é¡¼¥³¡¼¥É¤ÎÎóµó
¥é¥¤¥Ö¥é¥ê¤Î´Ø¿ô¤¬ÂÅÅö¤Ç¤Ê¤¤°ú¿ô¤È¤È¤â¤Ë¸Æ¤Ð¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢ÊÑ¿ô
#merror_code ¤ò¤³¤ì¤é¤ÎÃͤΤɤ줫¤Ë¥»¥Ã¥È¤¹¤ë¡£¤¹¤Ù¤Æ¤Î¥¨¥é¡¼¥³¡¼¥É¤ÏÀµ¤ÎÀ°¿ô¤Ç¤¢¤ë¡£
¥á¥â¥ê³äÅö¤Æ¥¨¥é¡¼¤ÎºÝ¤Ë¤Ï¡¢³°ÉôÊÑ¿ô #m17n_memory_full_handler
¤Î»Ø¤¹´Ø¿ô¤¬¡¢¤³¤ì¤é¤ÎÃͤΤ¦¤Á¤Î¤É¤ì¤«¤ò°ú¿ô¤È¤·¤Æ¸Æ¤Ð¤ì¤ë¡£
*/
enum MErrorCode
{
MERROR_NONE,
MERROR_OBJECT,
MERROR_SYMBOL,
MERROR_MTEXT,
MERROR_TEXTPROP,
MERROR_CHAR,
MERROR_CHARTABLE,
MERROR_CHARSET,
MERROR_CODING,
MERROR_RANGE,
MERROR_LANGUAGE,
MERROR_LOCALE,
MERROR_PLIST,
MERROR_MISC,
MERROR_WIN,
MERROR_X,
MERROR_FRAME,
MERROR_FACE,
MERROR_DRAW,
MERROR_FLT,
MERROR_FONT,
MERROR_FONTSET,
MERROR_FONT_OTF,
MERROR_FONT_X,
MERROR_FONT_FT,
MERROR_IM,
MERROR_DB,
MERROR_IO,
MERROR_DEBUG,
MERROR_MEMORY,
MERROR_GD,
MERROR_MAX
};
/*=*/
extern void (*m17n_memory_full_handler) (enum MErrorCode err);
/*=*/
/*** @ingroup m17nMisc */
/***en @defgroup m17nDebug Debugging */
/***ja @defgroup m17nDebug ¥Ç¥Ð¥Ã¥°¥µ¥Ý¡¼¥È */
/*=*/
extern int mdebug_hook (void);
extern MSymbol mdebug_dump_symbol (MSymbol sym, int indent);
extern MSymbol mdebug_dump_all_symbols (int indent);
extern MPlist *mdebug_dump_plist (MPlist *plist, int indent);
extern MText *mdebug_dump_mtext (MText *mt, int fullp, int indent);
extern MCharTable *mdebug_dump_chartab (MCharTable *table, int indent);
#ifdef DOXYGEN_INTERNAL_MODULE
/***en @defgroup m17nInternal Internal */
/***ja @defgroup m17nInternal Internal */
#endif
M17N_END_HEADER
#endif /* _M17N_ERR_H_ */
/*
Local Variables:
coding: euc-japan
End:
*/
|