From 7bcf04ca8bb891da3922776fbb0aa62a0030043c Mon Sep 17 00:00:00 2001 From: j8takagi Date: Mon, 25 Apr 2011 00:12:08 +0900 Subject: [PATCH] =?utf8?q?=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=AE=E9=87=8D?= =?utf8?q?=E8=A4=87=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/assemble.c | 3 --- src/comet2.c | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/assemble.c b/src/assemble.c index 8c1c436..aff5380 100644 --- a/src/assemble.c +++ b/src/assemble.c @@ -21,9 +21,6 @@ ASPTR *asptr; * アセンブルのエラー定義 */ 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\"" }, diff --git a/src/comet2.c b/src/comet2.c index f6d9fb1..8d07715 100644 --- 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 opt, status = 0; + int opt, stat = 0; const char *usage = "Usage: %s [-tTdh] [-M ] [-C ] FILE\n"; cerr_init(); @@ -74,8 +74,8 @@ int main(int argc, char *argv[]) } /* COMET II仮想マシンのシャットダウン */ shutdown(); - status = (cerr->num == 0) ? 0 : -1; + stat = (cerr->num == 0) ? 0 : -1; /* エラーの解放 */ freecerr(); - return status; + return stat; } -- 2.18.0