ラベルの出力時、アドレス順に並べ替えるように仕様変更
[YACASL2.git] / include / cerr.h
index 586ab4d..828d03e 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef YACASL2_CERR_H_INCLUDED
 #define YACASL2_CERR_H_INCLUDED
 
+#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>
@@ -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);