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
23607fd
..
5d21418
100644
(file)
--- a/
include/casl2.h
+++ b/
include/casl2.h
@@
-78,15
+78,16
@@
typedef enum {
NONE = 0,
} CMDTYPE;
NONE = 0,
} CMDTYPE;
-extern int cmdcodesize;
-
-/* 命令コードの配列 */
+/* 命令コード配列 */
typedef struct {
char *cmd;
CMDTYPE type;
WORD code;
} CMDCODEARRAY;
typedef struct {
char *cmd;
CMDTYPE type;
WORD code;
} CMDCODEARRAY;
+/* 命令コード配列のサイズ */
+extern int cmdcodesize;
+
/* 命令コードのハッシュ表 */
typedef struct _CMDCODETAB {
struct _CMDCODETAB *next;
/* 命令コードのハッシュ表 */
typedef struct _CMDCODETAB {
struct _CMDCODETAB *next;
@@
-95,6
+96,10
@@
typedef struct _CMDCODETAB {
extern CMDCODETAB **cmdtype_code;
extern CMDCODETAB **code_type;
extern CMDCODETAB **cmdtype_code;
extern CMDCODETAB **code_type;
+extern int cmdtabsize;
+
+/* COMET II仮想マシンのリセット */
+void reset();
/* 命令と命令タイプがキーのハッシュ表を作成する */
bool create_cmdtype_code();
/* 命令と命令タイプがキーのハッシュ表を作成する */
bool create_cmdtype_code();