projects
/
YACASL2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
66e1d81
)
エラーの重複を削除
v0.1p38
author
j8takagi
<j8takagi@nifty.com>
Sun, 24 Apr 2011 15:12:08 +0000
(
00:12
+0900)
committer
j8takagi
<j8takagi@nifty.com>
Sun, 24 Apr 2011 15:12:08 +0000
(
00:12
+0900)
src/assemble.c
patch
|
blob
|
history
src/comet2.c
patch
|
blob
|
history
diff --git
a/src/assemble.c
b/src/assemble.c
index
8c1c436
..
aff5380
100644
(file)
--- a/
src/assemble.c
+++ b/
src/assemble.c
@@
-21,9
+21,6
@@
ASPTR *asptr;
* アセンブルのエラー定義
*/
static CERR cerr_assemble[] = {
* アセンブルのエラー定義
*/
static CERR cerr_assemble[] = {
- { 101, "label already defined" },
- { 102, "label table is full" },
- { 103, "label not found" },
{ 106, "operand mismatch in assemble command" },
{ 107, "no label in START" },
{ 108, "not command of operand \"r\"" },
{ 106, "operand mismatch in assemble command" },
{ 107, "no label in START" },
{ 108, "not command of operand \"r\"" },
diff --git
a/src/comet2.c
b/src/comet2.c
index
f6d9fb1
..
8d07715
100644
(file)
--- a/
src/comet2.c
+++ b/
src/comet2.c
@@
-27,7
+27,7
@@
static struct option longopts[] = {
int main(int argc, char *argv[])
{
int memsize = DEFAULT_MEMSIZE, clocks = DEFAULT_CLOCKS;
int main(int argc, char *argv[])
{
int memsize = DEFAULT_MEMSIZE, clocks = DEFAULT_CLOCKS;
- int opt, stat
us
= 0;
+ int opt, stat = 0;
const char *usage = "Usage: %s [-tTdh] [-M <MEMORYSIZE>] [-C <CLOCKS>] FILE\n";
cerr_init();
const char *usage = "Usage: %s [-tTdh] [-M <MEMORYSIZE>] [-C <CLOCKS>] FILE\n";
cerr_init();
@@
-74,8
+74,8
@@
int main(int argc, char *argv[])
}
/* COMET II仮想マシンのシャットダウン */
shutdown();
}
/* COMET II仮想マシンのシャットダウン */
shutdown();
- stat
us
= (cerr->num == 0) ? 0 : -1;
+ stat = (cerr->num == 0) ? 0 : -1;
/* エラーの解放 */
freecerr();
/* エラーの解放 */
freecerr();
- return stat
us
;
+ return stat;
}
}