From: j8takagi Date: Wed, 4 Jul 2018 16:09:04 +0000 (+0900) Subject: コマンドラインオプションの修正 X-Git-Tag: v0.5p1~10 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7df71a043cc3500a8180667a321f0165f3ed6b05;p=YACASL2.git コマンドラインオプションの修正 --- diff --git a/src/casl2rev.c b/src/casl2rev.c index 11a2f5e..6d0d527 100644 --- a/src/casl2rev.c +++ b/src/casl2rev.c @@ -49,7 +49,6 @@ int main(int argc, char *argv[]) } disassemble_file(argv[optind]); /* プログラム実行 */ stat = (cerr->num == 0) ? 0 : 1; - /* エラーの解放 */ - freecerr(); + freecerr(); /* エラーの解放 */ return stat; } diff --git a/src/comet2.c b/src/comet2.c index f499022..a3d6ee1 100644 --- a/src/comet2.c +++ b/src/comet2.c @@ -9,11 +9,10 @@ static struct option longopts[] = { {"tracearithmetic", no_argument, NULL, 't'}, {"tracelogical", no_argument, NULL, 'T'}, {"dump", no_argument, NULL, 'd'}, - {"debug", no_argument, NULL, 'b'}, {"monitor", no_argument, NULL, 'm'}, {"memorysize", required_argument, NULL, 'M'}, {"clocks", required_argument, NULL, 'C'}, - { "version", no_argument, NULL, 'v' }, + {"version", no_argument, NULL, 'v' }, {"help", no_argument, NULL, 'h'}, {0, 0, 0, 0}, };