• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiond9f63c94f0fd703eb2639a379ad3b1160708a68e (tree)
Time2019-06-02 20:57:59
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 getuid(), geteuid() 定義を util.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -278,16 +278,6 @@
278278 ((bool)((A)->ml && (!ignore_unview || p_ptr->inside_battle || \
279279 (player_can_see_bold((A)->fy, (A)->fx) && projectable(p_ptr->y, p_ptr->x, (A)->fy, (A)->fx)))))
280280
281-/*
282- * Hack -- Prepare to use the "Secure" routines
283- */
284-#if defined(SET_UID) && defined(SECURE)
285-extern int PlayerUID;
286-# define getuid() PlayerUID
287-# define geteuid() PlayerUID
288-#endif
289-
290-
291281
292282 /*** Color constants ***/
293283
--- a/src/util.h
+++ b/src/util.h
@@ -1,5 +1,14 @@
11 #pragma once
22
3+/*
4+ * Hack -- Prepare to use the "Secure" routines
5+ */
6+#if defined(SET_UID) && defined(SECURE)
7+extern int PlayerUID;
8+# define getuid() PlayerUID
9+# define geteuid() PlayerUID
10+#endif
11+
312 #define KEYMAP_MODE_ORIG 0 /*!< オリジナルキー配置 / Mode for original keyset commands */
413 #define KEYMAP_MODE_ROGUE 1 /*!< ローグライクキー配置 / Mode for roguelike keyset commands */
514 #define KEYMAP_MODES 2 /*!< キー配置の数 / Number of keymap modes */
Show on old repository browser