1 #ifndef YACASL2_CERR_H_INCLUDED
2 #define YACASL2_CERR_H_INCLUDED
15 typedef struct _CERR {
17 char *msg; /**<エラーメッセージ */
28 typedef struct _CERRLIST {
29 struct _CERRLIST *next; /**<リスト次項目へのポインタ */
30 CERR *cerr; /**<エラーの構造体 */
36 extern CERRLIST *cerrlist;
39 CERRSTRSIZE = 10, /**<エラーメッセージ中に挿入できる文字列のサイズ */
40 CERRMSGSIZE = 70, /**<エラーメッセージのサイズ */
51 * @brief エラーリストを作成・追加する
55 * @param cerrc 作成または追加するエラーの数
56 * @param cerrv 作成または追加するエラーの配列
58 void addcerrlist(int cerrc, CERR cerrv[]);
73 * @param *str エラーメッセージに含まれる文字列
75 void setcerr(int num, const char *str);
78 * @brief エラー番号に対応するエラーメッセージを返す
84 char *getcerrmsg(int num);
87 * @brief エラーリストと現在のエラーを解放する