From: j8takagi Date: Wed, 20 Jun 2018 14:25:35 +0000 (+0900) Subject: コマンドファイル共通のヘッダファイル設定をpackage.hに整理 X-Git-Tag: v0.4p0~5 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4ecd19f404c806c33603dd5bcd508f4e5c80731;p=YACASL2.git コマンドファイル共通のヘッダファイル設定をpackage.hに整理 --- diff --git a/.gitignore b/.gitignore index dfb9c09..a78ba84 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ *.o.casl !as/sample/hello.o !as/sample/sum_10.o +include/version.h *~ GPATH GRTAGS diff --git a/Makefile b/Makefile index 7222401..a1921f4 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ VERSIONGITREF := $(shell $(GIT) show-ref -s --tags $(VERSION)) MASTERGITREF := $(shell $(GIT) show-ref -s refs/heads/master) -VERSIONFILES = include/package.h \ +VERSIONFILES = include/version.h \ test/system/casl2_opt/opt_v/0.txt \ test/system/comet2_opt/opt_v/0.txt \ test/system/dumpword/opt_v/0.txt diff --git a/include/.gitignore b/include/.gitignore deleted file mode 100644 index 345821b..0000000 --- a/include/.gitignore +++ /dev/null @@ -1 +0,0 @@ -package.h diff --git a/include/package.h b/include/package.h new file mode 100644 index 0000000..2b560c5 --- /dev/null +++ b/include/package.h @@ -0,0 +1,13 @@ +#ifndef YACASL2_PACKAGE_H_INCLUDED +#define YACASL2_PACKAGE_H_INCLUDED + +#include +#include +#include +#define _GNU_SOURCE +#include +#include "cmem.h" +#include "cerr.h" +#include "version.h" + +#endif diff --git a/include/package.h.version b/include/version.h.version similarity index 100% rename from include/package.h.version rename to include/version.h.version diff --git a/src/casl2.c b/src/casl2.c index 6a1d76f..a5943c0 100644 --- a/src/casl2.c +++ b/src/casl2.c @@ -1,14 +1,6 @@ -#include -#include - -#define _GNU_SOURCE -#include - -#include "cmem.h" -#include "cerr.h" +#include "package.h" #include "assemble.h" #include "exec.h" -#include "package.h" /** * @brief CASL IIのエラーをエラーリストに追加 diff --git a/src/casl2rev.c b/src/casl2rev.c index c849ecb..38bb16c 100644 --- a/src/casl2rev.c +++ b/src/casl2rev.c @@ -1,14 +1,5 @@ -#include -#include - -#define _GNU_SOURCE -#include -#include - -#include "exec.h" -#include "cmem.h" -#include "cerr.h" #include "package.h" +#include "exec.h" char *grstr(WORD word) { diff --git a/src/comet2.c b/src/comet2.c index 42ba4ba..1bef35e 100644 --- a/src/comet2.c +++ b/src/comet2.c @@ -1,12 +1,5 @@ -#include -#include -#define _GNU_SOURCE -#include - -#include "exec.h" -#include "cmem.h" -#include "cerr.h" #include "package.h" +#include "exec.h" /** * comet2コマンドのオプション diff --git a/src/dumpword.c b/src/dumpword.c index ad3564e..1fca90e 100644 --- a/src/dumpword.c +++ b/src/dumpword.c @@ -1,10 +1,5 @@ -#define _GNU_SOURCE -#include -#include -#include -#include "word.h" -#include "cerr.h" #include "package.h" +#include "word.h" /** * @brief dumpwordコマンドのオプション