+/**
+ * @brief エラーを表すデータ型
+ */
+typedef struct _CERR {
+ int num; /**<エラー番号 */
+ char *msg; /**<エラーメッセージ */
+} CERR;
+
+/**
+ * @brief 現在のエラー
+ */
+extern CERR *cerr;
+
+/**
+ * @brief エラーリストのデータ型
+ */
+typedef struct _CERRLIST {
+ struct _CERRLIST *next; /**<リスト次項目へのポインタ */
+ CERR *cerr; /**<エラーの構造体 */
+} CERRLIST;
+
+/**
+ * @brief エラーリスト
+ */
+extern CERRLIST *cerrlist;
+
+enum {
+ CERRSTRSIZE = 10, /**<エラーメッセージ中に挿入できる文字列のサイズ */
+ CERRMSGSIZE = 70, /**<エラーメッセージのサイズ */
+};