Fix formatting

This commit is contained in:
igor725 2024-03-12 08:18:40 +03:00
parent 43e2fd8224
commit 6a88fcc8d8
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D
3 changed files with 12 additions and 12 deletions

View File

@ -39,7 +39,7 @@ jobs:
- name: Run clang-format - name: Run clang-format
uses: jidicula/clang-format-action@v4.11.0 uses: jidicula/clang-format-action@v4.11.0
with: with:
clang-format-version: 18 clang-format-version: 17
exclude-regex: (third_party|vk_mem_alloc) exclude-regex: (third_party|vk_mem_alloc)
build: build:

View File

@ -3,14 +3,14 @@
#include "utility/utility.h" #include "utility/utility.h"
typedef void* SceAvPlayerHandle; typedef void* SceAvPlayerHandle;
using SceAvPlayerLogCallback = SYSV_ABI int (*)(void* userData, const char* format, va_list args); using SceAvPlayerLogCallback = SYSV_ABI int (*)(void* userData, const char* format, va_list args);
using SceAvPlayerAllocate = SYSV_ABI void* (*)(void* argP, uint32_t argAlignment, uint32_t argSize); using SceAvPlayerAllocate = SYSV_ABI void* (*)(void* argP, uint32_t argAlignment, uint32_t argSize);
using SceAvPlayerDeallocate = SYSV_ABI void (*)(void* argP, void* argMemory); using SceAvPlayerDeallocate = SYSV_ABI void (*)(void* argP, void* argMemory);
using SceAvPlayerAllocateTexture = SYSV_ABI void* (*)(void* argP, uint32_t argAlignment, uint32_t argSize); using SceAvPlayerAllocateTexture = SYSV_ABI void* (*)(void* argP, uint32_t argAlignment, uint32_t argSize);
using SceAvPlayerDeallocateTexture = SYSV_ABI void (*)(void* argP, void* argMemory); using SceAvPlayerDeallocateTexture = SYSV_ABI void (*)(void* argP, void* argMemory);
using SceAvPlayerOpenFile = SYSV_ABI int (*)(void* argP, const char* argFilename); using SceAvPlayerOpenFile = SYSV_ABI int (*)(void* argP, const char* argFilename);
using SceAvPlayerCloseFile = SYSV_ABI int (*)(void* argP); using SceAvPlayerCloseFile = SYSV_ABI int (*)(void* argP);
using SceAvPlayerReadOffsetFile = SYSV_ABI int (*)(void* argP, uint8_t* argBuffer, uint64_t argPosition, uint32_t argLength); using SceAvPlayerReadOffsetFile = SYSV_ABI int (*)(void* argP, uint8_t* argBuffer, uint64_t argPosition, uint32_t argLength);
using SceAvPlayerEventCallback = SYSV_ABI void (*)(void* p, int32_t argEventId, int32_t argSourceId, void* argEventData); using SceAvPlayerEventCallback = SYSV_ABI void (*)(void* p, int32_t argEventId, int32_t argSourceId, void* argEventData);
using SceAvPlayerSizeFile = SYSV_ABI uint64_t (*)(void* argP); using SceAvPlayerSizeFile = SYSV_ABI uint64_t (*)(void* argP);

View File

@ -28,9 +28,9 @@ typedef struct SceNpTrophyFlagArray {
SceNpTrophyFlagMask flagBits[SCE_NP_TROPHY_FLAG_SETSIZE >> SCE_NP_TROPHY_FLAG_BITS_SHIFT]; SceNpTrophyFlagMask flagBits[SCE_NP_TROPHY_FLAG_SETSIZE >> SCE_NP_TROPHY_FLAG_BITS_SHIFT];
} SceNpTrophyFlagArray; } SceNpTrophyFlagArray;
#define SCE_NP_TROPHY_FLAG_SET(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] |= (1 << ((n)&SCE_NP_TROPHY_FLAG_BITS_MASK))) #define SCE_NP_TROPHY_FLAG_SET(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] |= (1 << ((n) & SCE_NP_TROPHY_FLAG_BITS_MASK)))
#define SCE_NP_TROPHY_FLAG_CLR(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] &= ~(1 << ((n)&SCE_NP_TROPHY_FLAG_BITS_MASK))) #define SCE_NP_TROPHY_FLAG_CLR(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] &= ~(1 << ((n) & SCE_NP_TROPHY_FLAG_BITS_MASK)))
#define SCE_NP_TROPHY_FLAG_ISSET(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] & (1 << ((n)&SCE_NP_TROPHY_FLAG_BITS_MASK))) #define SCE_NP_TROPHY_FLAG_ISSET(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] & (1 << ((n) & SCE_NP_TROPHY_FLAG_BITS_MASK)))
#define SCE_NP_TROPHY_FLAG_ZERO(p) \ #define SCE_NP_TROPHY_FLAG_ZERO(p) \
do { \ do { \
SceNpTrophyFlagArray* __fa = (p); \ SceNpTrophyFlagArray* __fa = (p); \