OSDN Git Service

[Refactor] #37353 getuid(), geteuid() 定義を util.h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Sun, 2 Jun 2019 11:57:59 +0000 (20:57 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 2 Jun 2019 11:57:59 +0000 (20:57 +0900)
src/defines.h
src/util.h

index 5bf9b4b..0fb13a9 100644 (file)
        ((bool)((A)->ml && (!ignore_unview || p_ptr->inside_battle || \
         (player_can_see_bold((A)->fy, (A)->fx) && projectable(p_ptr->y, p_ptr->x, (A)->fy, (A)->fx)))))
 
-/*
- * Hack -- Prepare to use the "Secure" routines
- */
-#if defined(SET_UID) && defined(SECURE)
-extern int PlayerUID;
-# define getuid() PlayerUID
-# define geteuid() PlayerUID
-#endif
-
-
 
 /*** Color constants ***/
 
index 01d6027..b309cb0 100644 (file)
@@ -1,5 +1,14 @@
 #pragma once
 
+/*
+ * Hack -- Prepare to use the "Secure" routines
+ */
+#if defined(SET_UID) && defined(SECURE)
+extern int PlayerUID;
+# define getuid() PlayerUID
+# define geteuid() PlayerUID
+#endif
+
 #define KEYMAP_MODE_ORIG       0 /*!< \83I\83\8a\83W\83i\83\8b\83L\81[\94z\92u / Mode for original keyset commands */
 #define KEYMAP_MODE_ROGUE      1 /*!< \83\8d\81[\83O\83\89\83C\83N\83L\81[\94z\92u / Mode for roguelike keyset commands */
 #define KEYMAP_MODES           2 /*!< \83L\81[\94z\92u\82Ì\90\94 / Number of keymap modes */