X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdumpword.c;h=0bc9a472c93344720e5833628cf37db3be2f7896;hb=d644fa5efb63608e59b9f7b84c7806c91c970b5d;hp=dd49cd5be22d0af4b4b0561bd2a34524a370da3e;hpb=288d61424576d1aae956ea8e4b5fb89dc25909db;p=YACASL2.git diff --git a/src/dumpword.c b/src/dumpword.c index dd49cd5..0bc9a47 100644 --- a/src/dumpword.c +++ b/src/dumpword.c @@ -1,7 +1,13 @@ -#include "casl2.h" #define _GNU_SOURCE +#include +#include #include +#include "word.h" +#include "cerr.h" +/** + * dumpwordコマンドのオプション + */ static struct option longopts[] = { { "arithmetic", no_argument, NULL, 'a' }, { "logical", no_argument, NULL, 'l' }, @@ -9,9 +15,12 @@ static struct option longopts[] = { { 0, 0, 0, 0 }, }; +/** + * dumpwordコマンドのメイン + */ int main(int argc, char *argv[]) { - bool logicalmode = false; /* レジストリの内容を論理値(0〜65535)で表示する場合はtrue */ + bool logicalmode = false; /* レジストリの内容を論理値(0から65535)で表示する場合はtrue */ int opt; WORD word; const char *usage = "Usage: %s [-alh] WORD\n";