OSDN Git Service

[Refactor] #37353 hexsym を util.c/h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Fri, 10 May 2019 12:18:21 +0000 (21:18 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Fri, 10 May 2019 12:18:21 +0000 (21:18 +0900)
src/externs.h
src/tables.c
src/util.c
src/util.h

index a87be9a..c8a3c2f 100644 (file)
@@ -25,7 +25,6 @@ extern int level_up;
 
 /* tables.c */
 
-extern const char hexsym[16];
 extern const char listsym[];
 extern const concptr color_char;
 extern const byte adj_mag_study[];
index 77bd295..86bbb15 100644 (file)
 
 
 /*!
- * 10進数から16進数への変換テーブル /
- * Global array for converting numbers to uppercase hecidecimal digit
- * This array can also be used to convert a number to an octal digit
- */
-const char hexsym[16] =
-{
-       '0', '1', '2', '3', '4', '5', '6', '7',
-       '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
-};
-
-
-/*!
  * 選択処理用キーコード /
  * Global array for converting numbers to a logical list symbol
  */
index 30ac699..540a64b 100644 (file)
 #include "world.h"
 #include "cmd-dump.h"
 
+/*!
+ * 10進数から16進数への変換テーブル /
+ * Global array for converting numbers to uppercase hecidecimal digit
+ * This array can also be used to convert a number to an octal digit
+ */
+const char hexsym[16] =
+{
+       '0', '1', '2', '3', '4', '5', '6', '7',
+       '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
+};
+
 
 /*
  * The next "free" index to use
index 9ab4655..c58c19e 100644 (file)
@@ -74,6 +74,8 @@ extern int stricmp(concptr a, concptr b);
 extern int usleep(huge usecs);
 #endif
 
+extern const char hexsym[16];
+
 /* util.c */
 extern errr path_parse(char *buf, int max, concptr file);
 extern errr path_build(char *buf, int max, concptr path, concptr file);