From: j8takagi Date: Sun, 24 Apr 2011 15:12:08 +0000 (+0900) Subject: エラーの重複を削除 X-Git-Tag: v0.1p38 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bcf04ca8bb891da3922776fbb0aa62a0030043c;p=YACASL2.git エラーの重複を削除 --- 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; }