1 #ifndef YACASL2_CERR_H_INCLUDED
2 #define YACASL2_CERR_H_INCLUDED
10 #define ARRAYSIZE(array) (sizeof(array)/sizeof(array[0]))
26 typedef struct _CERRLIST {
27 struct _CERRLIST *next;
32 extern CERRLIST *cerr;
35 CERRSTRSIZE = 10, /* エラーメッセージ中に挿入できる文字列のサイズ */
36 CERRMSGSIZE = 70, /* エラーメッセージのサイズ */
40 void addcerrlist(int cerrc, CERRARRAY cerrv[]);
42 /* エラー番号とエラーメッセージを設定 */
43 void setcerr(int num, const char *str);
46 char *getcerrmsg(int num);