projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
malloc周辺を中心としたリファクタリング
[YACASL2.git]
/
src
/
comet2.c
diff --git
a/src/comet2.c
b/src/comet2.c
index
8233613
..
6ab8693
100644
(file)
--- a/
src/comet2.c
+++ b/
src/comet2.c
@@
-48,7
+48,7
@@
bool loadassemble(char *file) {
/* comet2コマンド */
int main(int argc, char *argv[])
{
/* comet2コマンド */
int main(int argc, char *argv[])
{
- int opt,
retval
= 0;
+ int opt,
status
= 0;
const char *usage = "Usage: %s [-tTdh] [-M <MEMORYSIZE>] [-C <CLOCKS>] FILE\n";
/* エラーの初期化 */
const char *usage = "Usage: %s [-tTdh] [-M <MEMORYSIZE>] [-C <CLOCKS>] FILE\n";
/* エラーの初期化 */
@@
-96,9
+96,9
@@
int main(int argc, char *argv[])
/* COMET II仮想マシンのシャットダウン */
shutdown();
if(cerr->num > 0) {
/* COMET II仮想マシンのシャットダウン */
shutdown();
if(cerr->num > 0) {
-
retval
= -1;
+
status
= -1;
}
/* エラーの解放 */
freecerr();
}
/* エラーの解放 */
freecerr();
- return
retval
;
+ return
status
;
}
}