]> j8takagi.net Git Repository - YACASL2.git/commitdiff
ヘッダーファイル呼び出しの整理
authorj8takagi <j8takagi@nifty.com>
Fri, 29 Jun 2018 01:07:26 +0000 (10:07 +0900)
committerj8takagi <j8takagi@nifty.com>
Fri, 29 Jun 2018 01:07:26 +0000 (10:07 +0900)
include/assemble.h
include/cerr.h
include/cmem.h
include/exec.h
include/struct.h
src/assemble.c
src/cerr.c
src/cmem.c
src/exec.c
src/label.c
src/struct.c

index 09949d6e65530bc54b3d69bf367ddcba9b6c43c3..468f0826b21568f386ea5884ec8de2e195268982 100644 (file)
@@ -1,7 +1,16 @@
 #ifndef YACASL2_ASSEMBLE_INCLUDED
 #define YACASL2_ASSEMBLE_INCLUDED
 
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <stdbool.h>
+#include <ctype.h>
+#include <assert.h>
+#include <errno.h>
+#include "cerr.h"
+#include "cmem.h"
+#include "hash.h"
 #include "struct.h"
 #include "word.h"
 
index 810bf3c442cd881fc261bae02829d8b39e3b6be7..9549de69f1cc44318332d63f0222e91fb98a3ed8 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef YACASL2_CERR_H_INCLUDED
 #define YACASL2_CERR_H_INCLUDED
 
+#include <stdbool.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <assert.h>
 #include <stdbool.h>
 #include "cmem.h"
 
index 85cb7203e29b16c04a9559f5cace05e1cc227d3c..c5bb6e8084315dd19f0d06a4a614f7e283203f2f 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef YACASL2_CMEM_H_INCLUDED
 #define YACASL2_CMEM_H_INCLUDED
+
+#include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+#include <assert.h>
+#include <stdbool.h>
 
 /**
  * @brief 配列のサイズを返すマクロ
index f08108993fb70221cc354129453bc12c459135b1..ce729c038025b99c5922700fcdc5f050d05d9afe 100644 (file)
@@ -3,9 +3,13 @@
 
 #include <stdbool.h>
 #include <stdio.h>
+#include <assert.h>
+#include <time.h>
 #include "struct.h"
 #include "word.h"
 #include "cmem.h"
+#include "cerr.h"
+#include "monitor.h"
 
 enum {
     INSIZE = 256    /**<IN命令の、入力領域 */
@@ -390,10 +394,10 @@ void dspregister();
 bool disassemble_file(const char *file);
 
 /**
- * @brief COMET IIã\83\87ã\83\90ã\83\83ã\82¬ーを起動する
+ * @brief COMET IIã\83¢ã\83\8bã\82¿ーを起動する
  *
  * @return なし
  */
-void debugger();
+void monitor();
 
 #endif            /* YACASL2_EXEC_INCLUDEDの終端 */
index ee5963425b8b29b25be94c759d843b213a097c7e..9064d5f5d3fe3c273374f3e5fd00997cb19fd282 100644 (file)
@@ -1,8 +1,13 @@
 #ifndef YACASL2_CASL2_INCLUDED
 #define YACASL2_CASL2_INCLUDED
 
+#include <stdio.h>
+#include <assert.h>
+#include <string.h>
 #include <time.h>
 #include "word.h"
+#include "cmem.h"
+#include "hash.h"
 
 /**
  * @brief COMET IIの規格値
index 68a3457670c5b961748e5d48bd4206a6d9c0fac8..8318d18990774872fff54cb77433cdec97e0cb43 100644 (file)
@@ -1,12 +1,4 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <assert.h>
-#include <errno.h>
-
 #include "assemble.h"
-#include "cerr.h"
 
 /**
  * @brief ファイルストリームの現在行を番号付きで表示する
index f1cb09c0ce68d9df1b290b9389d0dfea548324cc..cd2ace98be0d7801fa34279dc1c32aaf62c2f434 100644 (file)
@@ -1,8 +1,3 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <assert.h>
-#include <stdbool.h>
 #include "cerr.h"
 
 void cerr_init()
index 6c6ae12bca5ef0ed4dd9d4de6c8bfc29bc911ac6..fb29a7125831c988e34a1e3771086ec3f4729580 100644 (file)
@@ -1,8 +1,3 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <assert.h>
-#include <stdbool.h>
 #include "cmem.h"
 
 void *malloc_chk(size_t size, char *tag)
index b920fb157644cb754e5d511ea7ccf62b88c619f3..ca1dfe0864d1ed886aff7ccd9bdec72c079e314d 100644 (file)
@@ -1,10 +1,4 @@
-#include <stdio.h>
-#include <assert.h>
-#include <time.h>
-
 #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) {
index de37b9434023e140d7324320c0f42f5825346e88..cbb27b815d1ac720d630f394573cbe4511da3c9c 100644 (file)
@@ -1,10 +1,3 @@
-#include <stdio.h>
-#include <string.h>
-#include <assert.h>
-
-#include "cerr.h"
-#include "cmem.h"
-#include "hash.h"
 #include "assemble.h"
 
 /**
index f0f705b8bbf601ff91591391b4cea8deb4d5cc1e..0f0ae434aa38884248beb4c21b5545a4de7ff6b6 100644 (file)
@@ -1,9 +1,4 @@
-#include <stdio.h>
-#include <assert.h>
-#include <string.h>
-#include "hash.h"
 #include "struct.h"
-#include "cmem.h"
 #include "exec.h"
 
 /**