X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=include%2Fcasl2.h;h=96363ea5ce2e2b219ba9020ab829b5f5c113bbe7;hp=fa4b0ae64b0c69815160ddd80912213716934b40;hb=80ce7950a164d14c61db94dc6d6d1eccef8b32cc;hpb=ccc3acda4256e10a822e41e84f6c9991271c2f61 diff --git a/include/casl2.h b/include/casl2.h index fa4b0ae..96363ea 100644 --- a/include/casl2.h +++ b/include/casl2.h @@ -78,6 +78,8 @@ typedef enum { NONE = 0, } CMDTYPE; +extern int cmdcodesize; + /* 命令コードの配列 */ typedef struct { char *cmd; @@ -91,6 +93,9 @@ typedef struct _CMDCODETAB { CMDCODEARRAY *cca; } CMDCODETAB; +extern CMDCODETAB *cmdtype_code[]; +extern CMDCODETAB *code_type[]; + /* 命令と命令タイプがキーのハッシュ表を作成する */ bool create_cmdtype_code(); @@ -98,9 +103,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 +112,6 @@ void free_cmdtype_code(); /* 命令コードがキーのハッシュ表を作成する */ bool create_code_type(); -/* 命令コードからハッシュ値を生成する */ -unsigned hash_code(WORD code); - /* 命令コードから命令タイプを取得する */ /* 無効な場合はNONEを返す */ CMDTYPE getcmdtype(WORD code); @@ -126,4 +125,4 @@ void free_code_type(); /* 指定されたファイルにアセンブル結果を書込 */ void outassemble(const char *file); -#endif +#endif /* YACASL2_CASL2_INCLUDEDの終端 */