1 #ifndef YACASL2_CERR_H_INCLUDED
2 #define YACASL2_CERR_H_INCLUDED
12 #define ARRAYSIZE(array) (sizeof(array)/sizeof(array[0]))
18 char *msg; /* エラーメッセージ */
25 typedef struct _CERRLIST {
26 struct _CERRLIST *next;
30 extern CERRLIST *cerrlist;
33 CERRSTRSIZE = 10, /* エラーメッセージ中に挿入できる文字列のサイズ */
34 CERRMSGSIZE = 70, /* エラーメッセージのサイズ */
41 bool addcerrlist(int cerrc, CERR cerrv[]);
43 /* エラー番号とエラーメッセージを設定 */
44 void setcerr(int num, const char *str);
47 char *getcerrmsg(int num);