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