-/**
- * 命令ハッシュ表を解放する
- */
-void free_cmdtable(CMDTAB_HASH hash)
-{
- int i;
- CMDTAB *p, *q;
-
- for(i = 0; i < CMDTABSIZE; i++) {
- if(hash == HASH_CMDTYPE) {
- p = cmdtype_code[i];
- } else if(hash == HASH_CODE) {
- p = code_cmdtype[i];
- }
- for( ; p != NULL; p = q) {
- q = p->next;
- if(p == cmdtype_code[i]) {
- cmdtype_code[i] = NULL;
- } else if (p == code_cmdtype[i]) {
- code_cmdtype[i] = NULL;
- }
- FREE(p);
- }
- }
-}
-