Add labels to all typedef'd structs and enums
Release / release (push) Successful in 4s

This commit is contained in:
2026-09-13 02:31:46 +01:00
parent 5df1a105c7
commit 575e0a52b1
20 changed files with 74 additions and 26 deletions
+6 -3
View File
@@ -9,11 +9,11 @@
BEGIN_C_LINKAGE
#endif // !WP_PLATFORM_CPP
typedef struct {
typedef struct WpU128Hash {
u64 hash[2];
} WpU128Hash;
typedef enum {
typedef enum WpHasherType {
WP_HASH_TYPE_64,
WP_HASH_TYPE_128,
@@ -23,7 +23,7 @@ typedef enum {
typedef u64 (*WpHasher64) (WpU8Stream *stream, void *hasher_data);
typedef WpU128Hash (*WpHasher128)(WpU8Stream *stream, void *hasher_data);
typedef struct {
typedef struct WpHasher {
WpHasherType type;
union {
WpHasher64 hasher_64;
@@ -39,6 +39,9 @@ typedef struct {
#define wpHasher128(HASHER) ((WpHasher){ .type = WP_HASH_TYPE_128, .hasher_128 = (HASHER) })
#endif
WpU128Hash wpHasherGetHash128(const WpHasher *hasher, WpU8Stream *stream, void *hasher_data);
u64 wpHasherGetHash64 (const WpHasher *hasher, WpU8Stream *stream, void *hasher_data);
#ifdef WP_PLATFORM_CPP
END_C_LINKAGE
#endif // !WP_PLATFORM_CPP