projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ラベルの出力時、アドレス順に並べ替えるように仕様変更
[YACASL2.git]
/
include
/
casl2.h
diff --git
a/include/casl2.h
b/include/casl2.h
index
42ed92d
..
96363ea
100644
(file)
--- a/
include/casl2.h
+++ b/
include/casl2.h
@@
-78,6
+78,8
@@
typedef enum {
NONE = 0,
} CMDTYPE;
NONE = 0,
} CMDTYPE;
+extern int cmdcodesize;
+
/* 命令コードの配列 */
typedef struct {
char *cmd;
/* 命令コードの配列 */
typedef struct {
char *cmd;
@@
-91,6
+93,9
@@
typedef struct _CMDCODETAB {
CMDCODEARRAY *cca;
} CMDCODETAB;
CMDCODEARRAY *cca;
} CMDCODETAB;
+extern CMDCODETAB *cmdtype_code[];
+extern CMDCODETAB *code_type[];
+
/* 命令と命令タイプがキーのハッシュ表を作成する */
bool create_cmdtype_code();
/* 命令と命令タイプがキーのハッシュ表を作成する */
bool create_cmdtype_code();
@@
-98,9
+103,6
@@
bool create_cmdtype_code();
/* 無効な場合は0xFFFFを返す */
WORD getcmdcode(const char *cmd, CMDTYPE type);
/* 無効な場合は0xFFFFを返す */
WORD getcmdcode(const char *cmd, CMDTYPE type);
-/* 命令と命令タイプからハッシュ値を生成する */
-unsigned hash_cmdtype(const char *cmd, CMDTYPE type);
-
/* 命令と命令タイプがキーのハッシュ表を表示する */
void print_cmdtype_code();
/* 命令と命令タイプがキーのハッシュ表を表示する */
void print_cmdtype_code();
@@
-110,9
+112,6
@@
void free_cmdtype_code();
/* 命令コードがキーのハッシュ表を作成する */
bool create_code_type();
/* 命令コードがキーのハッシュ表を作成する */
bool create_code_type();
-/* 命令コードからハッシュ値を生成する */
-unsigned hash_code(WORD code);
-
/* 命令コードから命令タイプを取得する */
/* 無効な場合はNONEを返す */
CMDTYPE getcmdtype(WORD code);
/* 命令コードから命令タイプを取得する */
/* 無効な場合はNONEを返す */
CMDTYPE getcmdtype(WORD code);