OSDN Git Service

[Refactor] #40635 Moved put_title() to avoid declaring prototype
authorHourier <hourier@users.sourceforge.jp>
Thu, 20 Aug 2020 10:50:30 +0000 (19:50 +0900)
committerHourier <hourier@users.sourceforge.jp>
Thu, 20 Aug 2020 10:50:30 +0000 (19:50 +0900)
src/main/init.c

index e69cf82..7e225e8 100644 (file)
@@ -92,8 +92,6 @@
  */
 static const int MACRO_MAX = 256;
 
-static void put_title(void);
-
 /*!
  * @brief 各データファイルを読み取るためのパスを取得する
  * Find the default paths to all of our important sub-directories.
@@ -1180,6 +1178,25 @@ static void init_angband_aux(concptr why)
 }
 
 /*!
+ * @brief タイトル記述
+ * @return なし
+ */
+static void put_title(void)
+{
+    char title[120];
+#if H_VER_EXTRA > 0
+    sprintf(title, _("変愚蛮怒 %d.%d.%d.%d(%s)", "Hengband %d.%d.%d.%d(%s)"), H_VER_MAJOR, H_VER_MINOR, H_VER_PATCH, H_VER_EXTRA,
+#else
+    sprintf(title, _("変愚蛮怒 %d.%d.%d(%s)", "Hengband %d.%d.%d(%s)"), H_VER_MAJOR, H_VER_MINOR, H_VER_PATCH,
+#endif
+        IS_STABLE_VERSION ? _("安定版", "Stable") : _("開発版", "Developing"));
+    int col = (80 - strlen(title)) / 2;
+    col = col < 0 ? 0 : col;
+    const int VER_INFO_ROW = 3; //!< タイトル表記(行)
+    prt(title, VER_INFO_ROW, col);
+}
+
+/*!
  * @brief 全ゲームデータ読み込みのメインルーチン /
  * Hack -- main Angband initialization entry point
  * @return なし
@@ -1409,25 +1426,6 @@ void init_angband(player_type *player_ptr, void (*process_autopick_file_command)
 }
 
 /*!
- * @brief タイトル記述
- * @return なし
- */
-static void put_title(void)
-{
-    char title[120];
-#if H_VER_EXTRA > 0
-    sprintf(title, _("変愚蛮怒 %d.%d.%d.%d(%s)", "Hengband %d.%d.%d.%d(%s)"), H_VER_MAJOR, H_VER_MINOR, H_VER_PATCH, H_VER_EXTRA,
-#else
-    sprintf(title, _("変愚蛮怒 %d.%d.%d(%s)", "Hengband %d.%d.%d(%s)"), H_VER_MAJOR, H_VER_MINOR, H_VER_PATCH,
-#endif
-        IS_STABLE_VERSION ? _("安定版", "Stable") : _("開発版", "Developing"));
-    int col = (80 - strlen(title)) / 2;
-    col = col < 0 ? 0 : col;
-    const int VER_INFO_ROW = 3; //!< タイトル表記(行)
-    prt(title, VER_INFO_ROW, col);
-}
-
-/*!
  * @brief チェックサム情報を出力 / Get check sum in string form
  * @return チェックサム情報の文字列
  */