X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=include%2Fcerr.h;h=828d03e848c6664f6505c5f5a5ca950ffca341da;hp=9c191c11b1d74f25f1200a58987cf90a994311fc;hb=80ce7950a164d14c61db94dc6d6d1eccef8b32cc;hpb=e07b6371cc8a59c6793a895e968ff2c6cf28181b diff --git a/include/cerr.h b/include/cerr.h index 9c191c1..828d03e 100644 --- a/include/cerr.h +++ b/include/cerr.h @@ -1,7 +1,8 @@ #ifndef YACASL2_CERR_H_INCLUDED #define YACASL2_CERR_H_INCLUDED -#include +#include +#include #include #include @@ -21,8 +22,16 @@ typedef struct { char *msg; } CERRARRAY; +/* エラーメッセージ */ +extern CERRARRAY cerr[]; + +enum { + CERRSTRSIZE = 10, /* エラーメッセージ中に挿入できる文字列のサイズ */ + CERRMSGSIZE = 70, /* エラーメッセージのサイズ */ +}; + /* エラー番号とエラーメッセージを設定 */ -void setcerr(int num, const char *val); +void setcerr(int num, const char *str); /* エラー番号からメッセージを返す */ char *getcerrmsg(int num);