ユニットテストをソースに合わせて修正
[YACASL2.git] / test / unit / getcmdcode / cmd.c
index b8eed2b..55bf9a9 100644 (file)
@@ -1,4 +1,6 @@
-#include "casl2.h"
+#include <stdio.h>
+#include "struct.h"
+#include "cerr.h"
 
 int main(){
     int i;
@@ -23,7 +25,7 @@ int main(){
         { "SVC", ADR_X }, { "RET", NONE }
     };
     create_cmdtype_code();
-    cerr = malloc_chk(sizeof(CERR), "cerr");    /* エラーの初期化 */
+    cerr_init();
     for(i = 0; i < sizeof(cmdcodelist)/sizeof(cmdcodelist[0]); i++) {
         code = getcmdcode(cmdcodelist[i].cmd, cmdcodelist[i].type);
         printf("%s:0%02o ---> #%04X\n", cmdcodelist[i].cmd, cmdcodelist[i].type, code);