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
/
struct.h
diff --git
a/include/struct.h
b/include/struct.h
index
39f874b
..
ec4f52b
100644
(file)
--- a/
include/struct.h
+++ b/
include/struct.h
@@
-97,6
+97,7
@@
typedef struct {
char *name; /**<命令名 */
CMDTYPE type; /**<命令タイプ */
WORD code; /**<命令コード */
char *name; /**<命令名 */
CMDTYPE type; /**<命令タイプ */
WORD code; /**<命令コード */
+ const void (*ptr); /**<命令の関数ポインタ */
} CMD;
/**
} CMD;
/**
@@
-113,6
+114,7
@@
typedef struct _CMDTAB {
typedef struct {
WORD start; /**<開始アドレス */
WORD end; /**<終了アドレス */
typedef struct {
WORD start; /**<開始アドレス */
WORD end; /**<終了アドレス */
+ bool stop; /**<終了フラグ */
} EXECPTR;
extern EXECPTR *execptr;
} EXECPTR;
extern EXECPTR *execptr;
@@
-154,6
+156,11
@@
bool create_code_type();
*/
CMDTYPE getcmdtype(WORD code);
*/
CMDTYPE getcmdtype(WORD code);
+/**
+ * 命令コードから命令の関数ポインタを返す
+ */
+const void (*getcmdptr(WORD code));
+
/**
* コードがキーの命令ハッシュ表を解放する
*/
/**
* コードがキーの命令ハッシュ表を解放する
*/