From: j8takagi Date: Fri, 29 Jun 2018 01:07:26 +0000 (+0900) Subject: ヘッダーファイル呼び出しの整理 X-Git-Tag: v0.4p2~3 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46594d66972fae37a609506bcf01f6b2bdc865e;p=YACASL2.git ヘッダーファイル呼び出しの整理 --- diff --git a/include/assemble.h b/include/assemble.h index 09949d6..468f082 100644 --- a/include/assemble.h +++ b/include/assemble.h @@ -1,7 +1,16 @@ #ifndef YACASL2_ASSEMBLE_INCLUDED #define YACASL2_ASSEMBLE_INCLUDED +#include +#include +#include #include +#include +#include +#include +#include "cerr.h" +#include "cmem.h" +#include "hash.h" #include "struct.h" #include "word.h" diff --git a/include/cerr.h b/include/cerr.h index 810bf3c..9549de6 100644 --- a/include/cerr.h +++ b/include/cerr.h @@ -1,6 +1,11 @@ #ifndef YACASL2_CERR_H_INCLUDED #define YACASL2_CERR_H_INCLUDED +#include +#include +#include +#include +#include #include #include "cmem.h" diff --git a/include/cmem.h b/include/cmem.h index 85cb720..c5bb6e8 100644 --- a/include/cmem.h +++ b/include/cmem.h @@ -1,6 +1,11 @@ #ifndef YACASL2_CMEM_H_INCLUDED #define YACASL2_CMEM_H_INCLUDED + +#include #include +#include +#include +#include /** * @brief 配列のサイズを返すマクロ diff --git a/include/exec.h b/include/exec.h index f081089..ce729c0 100644 --- a/include/exec.h +++ b/include/exec.h @@ -3,9 +3,13 @@ #include #include +#include +#include #include "struct.h" #include "word.h" #include "cmem.h" +#include "cerr.h" +#include "monitor.h" enum { INSIZE = 256 /** +#include +#include #include #include "word.h" +#include "cmem.h" +#include "hash.h" /** * @brief COMET IIの規格値 diff --git a/src/assemble.c b/src/assemble.c index 68a3457..8318d18 100644 --- a/src/assemble.c +++ b/src/assemble.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include - #include "assemble.h" -#include "cerr.h" /** * @brief ファイルストリームの現在行を番号付きで表示する diff --git a/src/cerr.c b/src/cerr.c index f1cb09c..cd2ace9 100644 --- a/src/cerr.c +++ b/src/cerr.c @@ -1,8 +1,3 @@ -#include -#include -#include -#include -#include #include "cerr.h" void cerr_init() diff --git a/src/cmem.c b/src/cmem.c index 6c6ae12..fb29a71 100644 --- a/src/cmem.c +++ b/src/cmem.c @@ -1,8 +1,3 @@ -#include -#include -#include -#include -#include #include "cmem.h" void *malloc_chk(size_t size, char *tag) diff --git a/src/exec.c b/src/exec.c index b920fb1..ca1dfe0 100644 --- a/src/exec.c +++ b/src/exec.c @@ -1,10 +1,4 @@ -#include -#include -#include - #include "exec.h" -#include "cerr.h" -#include "debugger.h" /** * @brief プログラムレジスタ(PR)を表すWORD値を文字列に変換 @@ -813,7 +807,7 @@ void exec() } /* デバッガーモードの場合、デバッガーを起動 */ if(execmode.step == true || getbps(sys->cpu->pr) == true) { - debugger(); + monitor(); } /* プログラムレジスタをチェック */ if(sys->cpu->pr >= sys->memsize) { diff --git a/src/label.c b/src/label.c index de37b94..cbb27b8 100644 --- a/src/label.c +++ b/src/label.c @@ -1,10 +1,3 @@ -#include -#include -#include - -#include "cerr.h" -#include "cmem.h" -#include "hash.h" #include "assemble.h" /** diff --git a/src/struct.c b/src/struct.c index f0f705b..0f0ae43 100644 --- a/src/struct.c +++ b/src/struct.c @@ -1,9 +1,4 @@ -#include -#include -#include -#include "hash.h" #include "struct.h" -#include "cmem.h" #include "exec.h" /**