SDL_test: whitespace header fixes

This commit is contained in:
Anonymous Maarten 2024-09-06 03:21:57 +02:00 committed by Anonymous Maarten
parent db96ddca34
commit b4c3df1189
4 changed files with 6 additions and 24 deletions

View File

@ -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
}

View File

@ -42,12 +42,10 @@
extern "C" {
#endif
/*
Based on GSOC code by Markus Kauppila <markus.kauppila@gmail.com>
*/
/**
* 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.

View File

@ -44,7 +44,6 @@
extern "C" {
#endif
/* ! Definitions for test case structures */
#define TEST_ENABLED 1
#define TEST_DISABLED 0

View File

@ -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
*