ユニットテストに、最新版のAutotest.mkを反映
[YACASL2.git] / test / unit / print_code_type_hash / print_code_type.c
diff --git a/test/unit/print_code_type_hash/print_code_type.c b/test/unit/print_code_type_hash/print_code_type.c
deleted file mode 100644 (file)
index 80fea83..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#include "casl2.h"
-#include "cerr.h"
-
-/* 命令コードがキーのハッシュ表を表示する */
-void print_code_type()
-{
-    int i;
-    CMDTAB *np;
-    for(i = 0; i < cmdtabsize; i++){
-        for(np = code_type[i]; np != NULL; np = np->next) {
-            fprintf(stdout, "(%2d) - #%04X\t0%02o\t%s\n",
-                    i, np->cmd->code, np->cmd->type, np->cmd->name);
-        }
-    }
-}
-
-int main()
-{
-    /* エラーの初期化 */
-    cerr = malloc_chk(sizeof(CERR), "cerr");
-    /* ハッシュ表作成 */
-    create_code_type();
-    /* ハッシュ表表示 */
-    print_code_type();
-    /* ハッシュ表解放 */
-    free_code_type();
-    /* エラーの表示 */
-    if(cerr->num != 0) {
-        printf("\terror - %d: %s\n", cerr->num, cerr->msg);
-        freecerr();
-        exit(-1);
-    }
-    return 0;
-}