Format source code

This commit is contained in:
Nishi 2026-06-18 13:40:14 +09:00
commit d0be6165c0
165 changed files with 30306 additions and 33687 deletions

View file

@ -19,45 +19,45 @@
#include <limits.h>
#if !defined(UINT8_MAX)
# if UCHAR_MAX == 255
typedef signed char int8_t;
#if UCHAR_MAX == 255
typedef signed char int8_t;
typedef unsigned char uint8_t;
# define UINT8_MAX UCHAR_MAX
# else
# error "SJ3 requires an 8-bit unsigned char"
# endif
#define UINT8_MAX UCHAR_MAX
#else
#error "SJ3 requires an 8-bit unsigned char"
#endif
#endif
#if !defined(UINT16_MAX)
# if USHRT_MAX == 65535
typedef short int16_t;
#if USHRT_MAX == 65535
typedef short int16_t;
typedef unsigned short uint16_t;
# define UINT16_MAX USHRT_MAX
# else
# error "SJ3 requires a 16-bit unsigned short"
# endif
#define UINT16_MAX USHRT_MAX
#else
#error "SJ3 requires a 16-bit unsigned short"
#endif
#endif
#if !defined(UINT32_MAX)
# if UINT_MAX == 4294967295U
typedef int int32_t;
#if UINT_MAX == 4294967295U
typedef int int32_t;
typedef unsigned int uint32_t;
# define UINT32_MAX UINT_MAX
# elif ULONG_MAX == 4294967295UL
typedef long int32_t;
#define UINT32_MAX UINT_MAX
#elif ULONG_MAX == 4294967295UL
typedef long int32_t;
typedef unsigned long uint32_t;
# define UINT32_MAX ULONG_MAX
# else
# error "SJ3 requires a 32-bit integer type"
# endif
#define UINT32_MAX ULONG_MAX
#else
#error "SJ3 requires a 32-bit integer type"
#endif
#endif
#if !defined(UINT64_MAX) && (ULONG_MAX > 4294967295UL)
typedef long int64_t;
typedef long int64_t;
typedef unsigned long uint64_t;
# define UINT64_MAX ULONG_MAX
#define UINT64_MAX ULONG_MAX
#elif !defined(UINT64_MAX) && (defined(_MSC_VER) || defined(_WIN32))
typedef __int64 int64_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#endif