• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision9e39f3f130adf821d9b22fa497ca17766cffa155 (tree)
Time2018-12-10 18:41:24
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #37353 型の置換。 / Type replacement.

Change Summary

Incremental Difference

--- a/src/autopick.c
+++ b/src/autopick.c
@@ -19,27 +19,27 @@
1919 /*
2020 * Macros for Keywords
2121 */
22-#define FLG_ALL 0
23-#define FLG_UNAWARE 1
24-#define FLG_UNIDENTIFIED 2
25-#define FLG_IDENTIFIED 3
26-#define FLG_STAR_IDENTIFIED 4
27-#define FLG_COLLECTING 5
28-#define FLG_ARTIFACT 6
22+#define FLG_ALL 0
23+#define FLG_UNAWARE 1
24+#define FLG_UNIDENTIFIED 2
25+#define FLG_IDENTIFIED 3
26+#define FLG_STAR_IDENTIFIED 4
27+#define FLG_COLLECTING 5
28+#define FLG_ARTIFACT 6
2929 #define FLG_EGO 7
3030 #define FLG_GOOD 10
31-#define FLG_NAMELESS 11
31+#define FLG_NAMELESS 11
3232 #define FLG_AVERAGE 12
33-#define FLG_WORTHLESS 13
33+#define FLG_WORTHLESS 13
3434 #define FLG_RARE 14
3535 #define FLG_COMMON 15
3636 #define FLG_BOOSTED 16
37-#define FLG_MORE_DICE 17
38-#define FLG_MORE_BONUS 18
37+#define FLG_MORE_DICE 17
38+#define FLG_MORE_BONUS 18
3939 #define FLG_WANTED 19
4040 #define FLG_UNIQUE 20
4141 #define FLG_HUMAN 21
42-#define FLG_UNREADABLE 22
42+#define FLG_UNREADABLE 22
4343 #define FLG_REALM1 23
4444 #define FLG_REALM2 24
4545 #define FLG_FIRST 25
--- a/src/main-win.c
+++ b/src/main-win.c
@@ -5594,7 +5594,7 @@ int FAR PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrevInst,
55945594 HDC hdc;
55955595 MSG msg;
55965596
5597- setlocale( LC_ALL, "ja_JP" );
5597+ setlocale(LC_ALL, "ja_JP.utf8");
55985598
55995599 /* Unused */
56005600 (void)nCmdShow;
--- a/src/save.c
+++ b/src/save.c
@@ -1559,21 +1559,16 @@ static bool wr_savefile_new(void)
15591559 */
15601560 static bool save_player_aux(char *name)
15611561 {
1562- bool ok = FALSE;
1563-
1564- int fd = -1;
1565-
1566- int mode = 0644;
1567-
1562+ bool ok = FALSE;
1563+ int fd = -1;
1564+ int mode = 0644;
15681565
15691566 /* No file yet */
15701567 fff = NULL;
15711568
1572-
15731569 /* File type is "SAVE" */
15741570 FILE_TYPE(FILE_TYPE_SAVE);
15751571
1576-
15771572 /* Grab permissions */
15781573 safe_setuid_grab();
15791574
--- a/src/spells3.c
+++ b/src/spells3.c
@@ -515,10 +515,10 @@ void teleport_player_to(POSITION ny, POSITION nx, BIT_FLAGS mode)
515515 void teleport_away_followable(MONSTER_IDX m_idx)
516516 {
517517 monster_type *m_ptr = &m_list[m_idx];
518- int oldfy = m_ptr->fy;
519- int oldfx = m_ptr->fx;
520- bool old_ml = m_ptr->ml;
521- int old_cdis = m_ptr->cdis;
518+ POSITION oldfy = m_ptr->fy;
519+ POSITION oldfx = m_ptr->fx;
520+ bool old_ml = m_ptr->ml;
521+ POSITION old_cdis = m_ptr->cdis;
522522
523523 teleport_away(m_idx, MAX_SIGHT * 2 + 5, 0L);
524524
@@ -531,7 +531,7 @@ void teleport_away_followable(MONSTER_IDX m_idx)
531531 {
532532 BIT_FLAGS flgs[TR_FLAG_SIZE];
533533 object_type *o_ptr;
534- int i;
534+ INVENTORY_IDX i;
535535
536536 for (i = INVEN_RARM; i < INVEN_TOTAL; i++)
537537 {
--- a/src/util.c
+++ b/src/util.c
@@ -663,7 +663,6 @@ errr fd_copy(cptr file, cptr what)
663663 return (0);
664664 }
665665
666-
667666 /*
668667 * Hack -- attempt to open a file descriptor (create file)
669668 * This function should fail if the file already exists
@@ -691,7 +690,6 @@ int fd_make(cptr file, BIT_FLAGS mode)
691690 return (open(buf, O_CREAT | O_EXCL | O_WRONLY | O_BINARY, mode));
692691 #endif
693692
694-
695693 }
696694
697695
Show on old repository browser