Remove intl and m4.
[m17n/m17n-lib.git] / src / m17n-misc.h
index e7cd6d4..2021dba 100644 (file)
@@ -1,5 +1,5 @@
 /* m17n-misc.h -- header file for the MISC API.
-   Copyright (C) 2003, 2004
+   Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
      National Institute of Advanced Industrial Science and Technology (AIST)
      Registration Number H15PRO112
 
 
    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., 59 Temple Place, Suite 330, Boston, MA
+   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 */
-/***oldja @defgroup m17nError ¥¨¥é¡¼½èÍý  */
+/***ja @defgroup m17nError ¥¨¥é¡¼½èÍý  */
 /*=*/
 
 /*** @ingroup m17nError */
     Enumeration for error code of the m17n library.
 
     When a library function is called with an invalid argument, it
-    sets the external variable @e merror_code to one of these values.
+    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.  */
 
-/***oldja 
-    @brief m17n ¥é¥¤¥Ö¥é¥ê¥¨¥é¡¼¥³¡¼¥É¤ÎÎóµó
+/***ja 
+    @brief m17n ¥é¥¤¥Ö¥é¥ê¥¨¥é¡¼¥³¡¼¥É¤ÎÎóµó.
 
     m17n ¥é¥¤¥Ö¥é¥ê¥¨¥é¡¼¥³¡¼¥É¤ÎÎóµó
 
-    ¥é¥¤¥Ö¥é¥ê¤Î´Ø¿ô¤¬ÂÅÅö¤Ç¤Ê¤¤°ú¿ô¤È¤È¤â¤Ë¸Æ¤Ð¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢ÊÑ¿ô @c
-    merror_code ¤ò¤³¤ì¤é¤ÎÃͤΤɤ줫¤Ë¥»¥Ã¥È¤¹¤ë¡£¤¹¤Ù¤Æ¤Î¥¨¥é¡¼¥³¡¼¥É
-    ¤ÏÀµ¤ÎÀ°¿ô¤Ç¤¢¤ë¡£
+    ¥é¥¤¥Ö¥é¥ê¤Î´Ø¿ô¤¬ÂÅÅö¤Ç¤Ê¤¤°ú¿ô¤È¤È¤â¤Ë¸Æ¤Ð¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢ÊÑ¿ô 
+    #merror_code ¤ò¤³¤ì¤é¤ÎÃͤΤɤ줫¤Ë¥»¥Ã¥È¤¹¤ë¡£¤¹¤Ù¤Æ¤Î¥¨¥é¡¼¥³¡¼¥É¤ÏÀµ¤ÎÀ°¿ô¤Ç¤¢¤ë¡£
 
-    ¥á¥â¥ê³äÅö¤Æ¥¨¥é¡¼¤ÎºÝ¤Ë¤Ï¡¢³°ÉôÊÑ¿ô #m17n_memory_full_handler ¤Î»Ø
-    ¤¹´Ø¿ô¤¬¡¢¤³¤ì¤é¤ÎÃͤΤ¦¤Á¤Î¤É¤ì¤«¤ò°ú¿ô¤È¤·¤Æ¸Æ¤Ð¤ì¤ë¡£
+    ¥á¥â¥ê³äÅö¤Æ¥¨¥é¡¼¤ÎºÝ¤Ë¤Ï¡¢³°ÉôÊÑ¿ô #m17n_memory_full_handler 
+    ¤Î»Ø¤¹´Ø¿ô¤¬¡¢¤³¤ì¤é¤ÎÃͤΤ¦¤Á¤Î¤É¤ì¤«¤ò°ú¿ô¤È¤·¤Æ¸Æ¤Ð¤ì¤ë¡£
     */
 
 enum MErrorCode
@@ -78,28 +85,29 @@ enum MErrorCode
     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 enum MErrorCode merror_code;
-
 extern void (*m17n_memory_full_handler) (enum MErrorCode err);
 
 /*=*/
 /*** @ingroup m17nMisc  */
 /***en @defgroup m17nDebug Debugging */
-/***oldja @defgroup m17nDebug ¥Ç¥Ð¥Ã¥°¥µ¥Ý¡¼¥È */
+/***ja @defgroup m17nDebug ¥Ç¥Ð¥Ã¥°¥µ¥Ý¡¼¥È */
 /*=*/
 
 extern int mdebug_hook (void);
@@ -112,8 +120,11 @@ extern MCharTable *mdebug_dump_chartab (MCharTable *table, int indent);
 
 #ifdef DOXYGEN_INTERNAL_MODULE
 /***en @defgroup m17nInternal Internal */
-/***oldja @defgroup m17nInternal Internal */
+/***ja @defgroup m17nInternal Internal */
 #endif
+
+M17N_END_HEADER
+
 #endif /* _M17N_ERR_H_ */
 
 /*