From b4c3df1189cf2c410f3da36676f6d9e633ed736f Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Fri, 6 Sep 2024 03:21:57 +0200 Subject: [PATCH] SDL_test: whitespace header fixes --- include/SDL3/SDL_test_crc32.h | 4 ---- include/SDL3/SDL_test_fuzzer.h | 12 ------------ include/SDL3/SDL_test_harness.h | 1 - include/SDL3/SDL_test_md5.h | 13 ++++++------- 4 files changed, 6 insertions(+), 24 deletions(-) diff --git a/include/SDL3/SDL_test_crc32.h b/include/SDL3/SDL_test_crc32.h index 0079a245e..0c37b7031 100644 --- a/include/SDL3/SDL_test_crc32.h +++ b/include/SDL3/SDL_test_crc32.h @@ -40,7 +40,6 @@ extern "C" { #endif - /* ------------ Definitions --------- */ /* Definition shared by all CRC routines */ @@ -79,7 +78,6 @@ extern "C" { */ int SDLCALL SDLTest_Crc32Init(SDLTest_Crc32Context *crcContext); - /* * calculate a crc32 from a data block * @@ -98,7 +96,6 @@ int SDLCALL SDLTest_Crc32CalcStart(SDLTest_Crc32Context *crcContext, CrcUint32 * int SDLCALL SDLTest_Crc32CalcEnd(SDLTest_Crc32Context *crcContext, CrcUint32 *crc32); int SDLCALL SDLTest_Crc32CalcBuffer(SDLTest_Crc32Context *crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32); - /* * clean up CRC context * @@ -110,7 +107,6 @@ int SDLCALL SDLTest_Crc32CalcBuffer(SDLTest_Crc32Context *crcContext, CrcUint8 * int SDLCALL SDLTest_Crc32Done(SDLTest_Crc32Context *crcContext); - /* Ends C function definitions when using C++ */ #ifdef __cplusplus } diff --git a/include/SDL3/SDL_test_fuzzer.h b/include/SDL3/SDL_test_fuzzer.h index e507b53e5..3264960da 100644 --- a/include/SDL3/SDL_test_fuzzer.h +++ b/include/SDL3/SDL_test_fuzzer.h @@ -42,12 +42,10 @@ extern "C" { #endif - /* Based on GSOC code by Markus Kauppila */ - /** * Note: The fuzzer implementation uses a static instance of random context * internally which makes it thread-UNsafe. @@ -61,7 +59,6 @@ extern "C" { */ void SDLCALL SDLTest_FuzzerInit(Uint64 execKey); - /** * Returns a random Uint8 * @@ -76,7 +73,6 @@ Uint8 SDLCALL SDLTest_RandomUint8(void); */ Sint8 SDLCALL SDLTest_RandomSint8(void); - /** * Returns a random Uint16 * @@ -91,7 +87,6 @@ Uint16 SDLCALL SDLTest_RandomUint16(void); */ Sint16 SDLCALL SDLTest_RandomSint16(void); - /** * Returns a random integer * @@ -99,7 +94,6 @@ Sint16 SDLCALL SDLTest_RandomSint16(void); */ Sint32 SDLCALL SDLTest_RandomSint32(void); - /** * Returns a random positive integer * @@ -114,7 +108,6 @@ Uint32 SDLCALL SDLTest_RandomUint32(void); */ Uint64 SDLTest_RandomUint64(void); - /** * Returns random Sint64. * @@ -249,7 +242,6 @@ Uint64 SDLCALL SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 bounda */ Sint8 SDLCALL SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_bool validDomain); - /** * Returns a random boundary value for Sint16 within the given boundaries. * Boundaries are inclusive, see the usage examples below. If validDomain @@ -313,7 +305,6 @@ Sint32 SDLCALL SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 bounda */ Sint64 SDLCALL SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain); - /** * Returns integer in range [min, max] (inclusive). * Min and max values can be negative values. @@ -327,7 +318,6 @@ Sint64 SDLCALL SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 bounda */ Sint32 SDLCALL SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max); - /** * Generates random null-terminated string. The minimum length for * the string is 1 character, maximum length for the string is 255 @@ -339,7 +329,6 @@ Sint32 SDLCALL SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max); */ char * SDLCALL SDLTest_RandomAsciiString(void); - /** * Generates random null-terminated string. The maximum length for * the string is defined by the maxLength parameter. @@ -353,7 +342,6 @@ char * SDLCALL SDLTest_RandomAsciiString(void); */ char * SDLCALL SDLTest_RandomAsciiStringWithMaximumLength(int maxLength); - /** * Generates random null-terminated string. The length for * the string is defined by the size parameter. diff --git a/include/SDL3/SDL_test_harness.h b/include/SDL3/SDL_test_harness.h index cc2a15f5a..cfd538a08 100644 --- a/include/SDL3/SDL_test_harness.h +++ b/include/SDL3/SDL_test_harness.h @@ -44,7 +44,6 @@ extern "C" { #endif - /* ! Definitions for test case structures */ #define TEST_ENABLED 1 #define TEST_DISABLED 0 diff --git a/include/SDL3/SDL_test_md5.h b/include/SDL3/SDL_test_md5.h index d4d0bff98..d751aab96 100644 --- a/include/SDL3/SDL_test_md5.h +++ b/include/SDL3/SDL_test_md5.h @@ -67,15 +67,15 @@ extern "C" { /* ------------ Definitions --------- */ /* typedef a 32-bit type */ - typedef Uint32 MD5UINT4; +typedef Uint32 MD5UINT4; /* Data structure for MD5 (Message-Digest) computation */ - typedef struct SDLTest_Md5Context { - MD5UINT4 i[2]; /* number of _bits_ handled mod 2^64 */ - MD5UINT4 buf[4]; /* scratch buffer */ - unsigned char in[64]; /* input buffer */ +typedef struct SDLTest_Md5Context { + MD5UINT4 i[2]; /* number of _bits_ handled mod 2^64 */ + MD5UINT4 buf[4]; /* scratch buffer */ + unsigned char in[64]; /* input buffer */ unsigned char digest[16]; /* actual digest after Md5Final call */ - } SDLTest_Md5Context; +} SDLTest_Md5Context; /* ---------- Function Prototypes ------------- */ @@ -104,7 +104,6 @@ void SDLCALL SDLTest_Md5Init(SDLTest_Md5Context *mdContext); void SDLCALL SDLTest_Md5Update(SDLTest_Md5Context *mdContext, unsigned char *inBuf, unsigned int inLen); - /** * complete digest computation *