X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fcasl2.h;h=3d602c4a4b082738306b4693cb06f2b71261e613;hb=009c6ac7ce3a9eae222d48ae591790be1e70c908;hp=42ed92db5205d7b3d513d8017d20b34a362939b7;hpb=4fe8479d27f535a0ff44c9f6ce270249934e980f;p=YACASL2.git diff --git a/include/casl2.h b/include/casl2.h index 42ed92d..3d602c4 100644 --- a/include/casl2.h +++ b/include/casl2.h @@ -78,19 +78,26 @@ typedef enum { NONE = 0, } CMDTYPE; -/* 命令コードの配列 */ +/* 命令コード配列 */ typedef struct { char *cmd; CMDTYPE type; WORD code; } CMDCODEARRAY; +/* 命令コード配列のサイズ */ +extern int cmdcodesize; + /* 命令コードのハッシュ表 */ typedef struct _CMDCODETAB { struct _CMDCODETAB *next; CMDCODEARRAY *cca; } CMDCODETAB; +extern CMDCODETAB **cmdtype_code; +extern CMDCODETAB **code_type; +extern int cmdtabsize; + /* 命令と命令タイプがキーのハッシュ表を作成する */ bool create_cmdtype_code(); @@ -98,9 +105,6 @@ bool create_cmdtype_code(); /* 無効な場合は0xFFFFを返す */ WORD getcmdcode(const char *cmd, CMDTYPE type); -/* 命令と命令タイプからハッシュ値を生成する */ -unsigned hash_cmdtype(const char *cmd, CMDTYPE type); - /* 命令と命令タイプがキーのハッシュ表を表示する */ void print_cmdtype_code(); @@ -110,9 +114,6 @@ void free_cmdtype_code(); /* 命令コードがキーのハッシュ表を作成する */ bool create_code_type(); -/* 命令コードからハッシュ値を生成する */ -unsigned hash_code(WORD code); - /* 命令コードから命令タイプを取得する */ /* 無効な場合はNONEを返す */ CMDTYPE getcmdtype(WORD code);