X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=test%2Funit%2Fprint_cmdtype_code_hash%2Fprint_cmdtype_code.c;h=ba26a740019487149e2f6f5a15e10a7334cc1a1b;hp=d075ae469e08f3b4b604ad763b0f4e44e73c40cb;hb=06ccc214315a98123b3ac4c91af1e1b09ab7fc07;hpb=e6f41d41cff07e56b0cbc7d515c46327206c9f40 diff --git a/test/unit/print_cmdtype_code_hash/print_cmdtype_code.c b/test/unit/print_cmdtype_code_hash/print_cmdtype_code.c index d075ae4..ba26a74 100644 --- a/test/unit/print_cmdtype_code_hash/print_cmdtype_code.c +++ b/test/unit/print_cmdtype_code_hash/print_cmdtype_code.c @@ -4,12 +4,12 @@ void print_cmdtype_code() { int i; - CMDCODETAB *np; - for(i = 0; i < cmdtabsize; i++){ + CMDTAB *np; + for(i = 0; i < comet2cmdsize; i++){ np = cmdtype_code[i]; while(np != NULL) { fprintf(stdout, "(%2d) - %s\t0%02o\t#%04X\n", - i, np->cmdtypecode->cmd, np->cmdtypecode->type, np->cmdtypecode->code); + i, np->cmd->name, np->cmd->type, np->cmd->code); np = np->next; } }