X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcomet2.c;h=af4bfb84d1a6e3d535b51fac05c87ccb02c71116;hb=72c8f26e688864051d3a79897fe6748c3f65503c;hp=3d429d1de4c21746e632b38e5472d577b59e5984;hpb=6b04961e3a699efa011258cc1b1166df71b4c078;p=YACASL2.git diff --git a/src/comet2.c b/src/comet2.c index 3d429d1..af4bfb8 100644 --- a/src/comet2.c +++ b/src/comet2.c @@ -21,13 +21,6 @@ static struct option longopts[] = { {0, 0, 0, 0}, }; -/** - * comet2コマンドのエラー - */ -static CERR cerr_comet2[] = { - { 208, "object file is not specified" }, -}; - /** * comet2コマンドのメイン */ @@ -38,7 +31,7 @@ int main(int argc, char *argv[]) const char *usage = "Usage: %s [-tTdh] [-M ] [-C ] FILE\n"; cerr_init(); - addcerrlist(ARRAYSIZE(cerr_comet2), cerr_comet2); + addcerrlist_load(); addcerrlist_exec(); /* オプションの処理 */ @@ -69,7 +62,7 @@ int main(int argc, char *argv[]) } } if(argv[optind] == NULL) { - setcerr(208, NULL); /* object file is not specified */ + setcerr(211, NULL); /* object file not specified */ fprintf(stderr, "comet2 error - %d: %s\n", cerr->num, cerr->msg); exit(-1); }