X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=include%2Fcerr.h;h=5ff200c653420341882f93bd1fbdd05af1381144;hp=db9adbecdc2005b80bf046fd381d5613dc6d60b5;hb=93f3bbbc043d2883610bd979556e0bae42e5c8b2;hpb=d1f82970bf7d41db2fea11b08cd8e308f6cb8138 diff --git a/include/cerr.h b/include/cerr.h index db9adbe..5ff200c 100644 --- a/include/cerr.h +++ b/include/cerr.h @@ -7,9 +7,9 @@ /** * エラーの構造体 */ -typedef struct { - int num; /* エラー番号 */ - char *msg; /* エラーメッセージ */ +typedef struct _CERR { + int num; /**<エラー番号 */ + char *msg; /**<エラーメッセージ */ } CERR; /** @@ -21,8 +21,8 @@ extern CERR *cerr; * エラーリスト型 */ typedef struct _CERRLIST { - struct _CERRLIST *next; - CERR *cerr; + struct _CERRLIST *next; /**<リスト次項目へのポインタ */ + CERR *cerr; /**<エラーの構造体 */ } CERRLIST; /** @@ -43,7 +43,12 @@ void cerr_init(); /** * エラーリストを作成・追加する */ -bool addcerrlist(int cerrc, CERR cerrv[]); +void addcerrlist(int cerrc, CERR cerrv[]); + +/** + * エラーリストを表示する + */ +void printcerrlist(); /** * 現在のエラーを設定する