dumpwordコマンド実行時やレジスタの内容を表示するときに、対応する文字を表示するよう仕様変更
[YACASL2.git] / include / cerr.h
index 9c191c1..878fd85 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef YACASL2_CERR_H_INCLUDED
 #define YACASL2_CERR_H_INCLUDED
 
 #ifndef YACASL2_CERR_H_INCLUDED
 #define YACASL2_CERR_H_INCLUDED
 
-#include <malloc.h>
+#include <stdlib.h>
 #include <string.h>
 #include <assert.h>
 
 #include <string.h>
 #include <assert.h>
 
@@ -21,6 +21,13 @@ typedef struct {
     char *msg;
 } CERRARRAY;
 
     char *msg;
 } CERRARRAY;
 
+/* エラーメッセージ */
+extern CERRARRAY cerr[];
+
+enum {
+    MSGSIZE = 60,
+};
+
 /* エラー番号とエラーメッセージを設定 */
 void setcerr(int num, const char *val);
 
 /* エラー番号とエラーメッセージを設定 */
 void setcerr(int num, const char *val);