projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exec.cを一部変更
[YACASL2.git]
/
src
/
cmd.c
diff --git
a/src/cmd.c
b/src/cmd.c
index
aa435b9
..
ecd5fdb
100644
(file)
--- a/
src/cmd.c
+++ b/
src/cmd.c
@@
-183,21
+183,21
@@
bool create_code_type()
}
/**
}
/**
- * å
\91
½ä»¤ã
\82
³ã
\83
¼ã
\83
\89
ã
\81
\8b
ã
\82
\89
å
\91
½ä»¤ã
\82
¿ã
\82
¤ã
\83
\97
ã
\82
\92
è¿
\94
ã
\81
\99
- *
無効な場合はNOTCMD
を返す
+ * 命令コードから命令を返す
+ *
命令コードでない場合はNULL
を返す
*/
*/
-CMD
TYPE getcmdtype
(WORD code)
+CMD
*getcmd
(WORD code)
{
CMDTAB *p;
{
CMDTAB *p;
- CMD
TYPE t = NOTCMD
;
+ CMD
*c = NULL
;
for(p = code_type[hash_code(code)]; p != NULL; p = p->next) {
if(code == p->cmd->code) {
for(p = code_type[hash_code(code)]; p != NULL; p = p->next) {
if(code == p->cmd->code) {
-
t = p->cmd->type
;
+
c = p->cmd
;
break;
}
}
break;
}
}
- return
t
;
+ return
c
;
}
/**
}
/**