#if defined(__INTPTR_TYPE__)
#define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0)), int*)
#else
- #include <stdint.h>
+ #include <cstdint>
#define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((intptr_t) ((expr) * 0)) : (int*) 0)), int*)
#endif
# elif \
#if defined(__INTPTR_TYPE__)
#define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0), int*: 1, void*: 0)
#else
- #include <stdint.h>
+ #include <cstdint>
#define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((intptr_t) * 0) : (int*) 0), int*: 1, void*: 0)
#endif
# elif \
#include "system/redrawing-flags-updater.h"
#include "util/flag-group.h"
#include <array>
-#include <stdint.h>
+#include <cstdint>
constexpr auto MAX_WINDOW_ENTITIES = 8;
#pragma once
-#include <stdint.h>
+#include <cstdint>
bool h_older_than(uint8_t major, uint8_t minor, uint8_t patch, uint8_t extra);
bool h_older_than(uint8_t major, uint8_t minor, uint8_t patch);
#include "system/item-entity.h"
#include "system/player-type-definition.h"
#include "util/object-sort.h"
-#include <stdint.h>
+#include <cstdint>
/*!
* @brief 店置きのアイテムオブジェクトを読み込む / Add the item "o_ptr" to the inventory of the "Home"
#pragma once
-#include <stdint.h>
+#include <cstdint>
#include <string>
#include <vector>
#pragma once
-#include <stdint.h>
+#include <cstdint>
class PlayerType;
void set_action(PlayerType *player_ptr, uint8_t typ);
#pragma once
#include "util/rng-xoshiro.h"
-#include <stdint.h>
+#include <cstdint>
#include <string>
#include <string_view>
#pragma once
-#include <stdint.h>
+#include <cstdint>
#include <string>
/*!
#pragma once
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
+#include <cstdarg>
+#include <cstddef>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <ctime>
+#include <cwctype>
#include <fcntl.h>
#include <memory.h>
-#include <stdarg.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <wctype.h>
// clang-format off
*/
#include <cassert>
-#include <stdint.h>
+#include <cstdint>
/*** Special 4 letter names for some standard types ***/
typedef void *vptr; /*!< void型ポインタ定義 / A standard pointer (to "void" because ANSI C says so) */
#pragma once
-#include <stdint.h>
+#include <cstdint>
enum target_type : uint32_t;
class PlayerType;
#pragma once
-#include <stdint.h>
+#include <cstdint>
/* target_set用関数の利用用途フラグ / Bit flags for the "target_set" function */
enum target_type : uint32_t {
#include "info-reader/info-reader-util.h"
#include <bitset>
#include <concepts>
+#include <cstdint>
#include <iterator>
#include <optional>
-#include <stdint.h>
#include <type_traits>
template <typename T>