OCD fixes: Adds a space after /* (glory to regular expressions!)

This commit is contained in:
Gabriel Jacobo 2013-08-21 09:47:10 -03:00
parent 271e0d67c4
commit 298ce1c1a7
83 changed files with 459 additions and 459 deletions

View file

@ -1,7 +1,7 @@
/**
* Automated SDL subsystems management test.
*
* Written by Jørgen Tjernø "jorgenpt"
* Written by J<EFBFBD>rgen Tjern<EFBFBD> "jorgenpt"
*
* Released under Public Domain.
*/
@ -10,7 +10,7 @@
#include "SDL_test.h"
/*!
/* !
* \brief Tests SDL_Init() and SDL_Quit() of Joystick and Haptic subsystems
* \sa
* http://wiki.libsdl.org/moin.cgi/SDL_Init
@ -38,7 +38,7 @@ static int main_testInitQuitJoystickHaptic (void *arg)
#endif
}
/*!
/* !
* \brief Tests SDL_InitSubSystem() and SDL_QuitSubSystem()
* \sa
* http://wiki.libsdl.org/moin.cgi/SDL_Init

View file

@ -102,7 +102,7 @@ int platform_testEndianessAndSwap(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_GetXYZ() functions
* \sa
* http://wiki.libsdl.org/moin.cgi/SDL_GetPlatform
@ -151,7 +151,7 @@ int platform_testGetFunctions (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_HasXYZ() functions
* \sa
* http://wiki.libsdl.org/moin.cgi/SDL_Has3DNow
@ -200,7 +200,7 @@ int platform_testHasFunctions (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_GetVersion
* \sa
* http://wiki.libsdl.org/moin.cgi/SDL_GetVersion
@ -225,7 +225,7 @@ int platform_testGetVersion(void *arg)
}
/*!
/* !
* \brief Tests SDL_VERSION macro
*/
int platform_testSDLVersion(void *arg)
@ -248,7 +248,7 @@ int platform_testSDLVersion(void *arg)
}
/*!
/* !
* \brief Tests default SDL_Init
*/
int platform_testDefaultInit(void *arg)
@ -270,7 +270,7 @@ int platform_testDefaultInit(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_Get/Set/ClearError
* \sa
* http://wiki.libsdl.org/moin.cgi/SDL_GetError
@ -322,7 +322,7 @@ int platform_testGetSetClearError(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_SetError with empty input
* \sa
* http://wiki.libsdl.org/moin.cgi/SDL_SetError
@ -358,7 +358,7 @@ int platform_testSetErrorEmptyInput(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_SetError with invalid input
* \sa
* http://wiki.libsdl.org/moin.cgi/SDL_SetError
@ -422,7 +422,7 @@ int platform_testSetErrorInvalidInput(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_GetPowerInfo
* \sa
* http://wiki.libsdl.org/moin.cgi/SDL_GetPowerInfo

View file

@ -12,7 +12,7 @@
/* Helper functions */
/*!
/* !
* \brief Private helper to check SDL_IntersectRectAndLine results
*/
void _validateIntersectRectAndLineResults(
@ -39,7 +39,7 @@ void _validateIntersectRectAndLineResults(
/* Test case functions */
/*!
/* !
* \brief Tests SDL_IntersectRectAndLine() clipping cases
*
* \sa
@ -110,7 +110,7 @@ rect_testIntersectRectAndLine (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_IntersectRectAndLine() non-clipping case line inside
*
* \sa
@ -177,7 +177,7 @@ rect_testIntersectRectAndLineInside (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_IntersectRectAndLine() non-clipping cases outside
*
* \sa
@ -232,7 +232,7 @@ rect_testIntersectRectAndLineOutside (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_IntersectRectAndLine() with empty rectangle
*
* \sa
@ -267,7 +267,7 @@ rect_testIntersectRectAndLineEmpty (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Negative tests against SDL_IntersectRectAndLine() with invalid parameters
*
* \sa
@ -302,7 +302,7 @@ rect_testIntersectRectAndLineParam (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Private helper to check SDL_HasIntersection results
*/
void _validateHasIntersectionResults(
@ -325,7 +325,7 @@ void _validateHasIntersectionResults(
refRectB->x, refRectB->y, refRectB->w, refRectB->h);
}
/*!
/* !
* \brief Private helper to check SDL_IntersectRect results
*/
void _validateIntersectRectResults(
@ -344,7 +344,7 @@ void _validateIntersectRectResults(
}
}
/*!
/* !
* \brief Private helper to check SDL_UnionRect results
*/
void _validateUnionRectResults(
@ -367,7 +367,7 @@ void _validateUnionRectResults(
expectedResult->x, expectedResult->y, expectedResult->w, expectedResult->h);
}
/*!
/* !
* \brief Private helper to check SDL_RectEmpty results
*/
void _validateRectEmptyResults(
@ -385,7 +385,7 @@ void _validateRectEmptyResults(
refRect->x, refRect->y, refRect->w, refRect->h);
}
/*!
/* !
* \brief Private helper to check SDL_RectEquals results
*/
void _validateRectEqualsResults(
@ -408,7 +408,7 @@ void _validateRectEqualsResults(
refRectB->x, refRectB->y, refRectB->w, refRectB->h);
}
/*!
/* !
* \brief Tests SDL_IntersectRect() with B fully inside A
*
* \sa
@ -436,7 +436,7 @@ int rect_testIntersectRectInside (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_IntersectRect() with B fully outside A
*
* \sa
@ -464,7 +464,7 @@ int rect_testIntersectRectOutside (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_IntersectRect() with B partially intersecting A
*
* \sa
@ -553,7 +553,7 @@ int rect_testIntersectRectPartial (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_IntersectRect() with 1x1 pixel sized rectangles
*
* \sa
@ -600,7 +600,7 @@ int rect_testIntersectRectPoint (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_IntersectRect() with empty rectangles
*
* \sa
@ -672,7 +672,7 @@ int rect_testIntersectRectEmpty (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Negative tests against SDL_IntersectRect() with invalid parameters
*
* \sa
@ -702,7 +702,7 @@ int rect_testIntersectRectParam(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_HasIntersection() with B fully inside A
*
* \sa
@ -729,7 +729,7 @@ int rect_testHasIntersectionInside (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_HasIntersection() with B fully outside A
*
* \sa
@ -756,7 +756,7 @@ int rect_testHasIntersectionOutside (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_HasIntersection() with B partially intersecting A
*
* \sa
@ -823,7 +823,7 @@ int rect_testHasIntersectionPartial (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_HasIntersection() with 1x1 pixel sized rectangles
*
* \sa
@ -869,7 +869,7 @@ int rect_testHasIntersectionPoint (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_HasIntersection() with empty rectangles
*
* \sa
@ -927,7 +927,7 @@ int rect_testHasIntersectionEmpty (void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Negative tests against SDL_HasIntersection() with invalid parameters
*
* \sa
@ -950,7 +950,7 @@ int rect_testHasIntersectionParam(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Test SDL_EnclosePoints() without clipping
*
* \sa
@ -1020,7 +1020,7 @@ int rect_testEnclosePoints(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Test SDL_EnclosePoints() with repeated input points
*
* \sa
@ -1096,7 +1096,7 @@ int rect_testEnclosePointsRepeatedInput(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Test SDL_EnclosePoints() with clipping
*
* \sa
@ -1195,7 +1195,7 @@ int rect_testEnclosePointsWithClipping(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Negative tests against SDL_EnclosePoints() with invalid parameters
*
* \sa
@ -1223,7 +1223,7 @@ int rect_testEnclosePointsParam(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_UnionRect() where rect B is outside rect A
*
* \sa
@ -1294,7 +1294,7 @@ int rect_testUnionRectOutside(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_UnionRect() where rect A or rect B are empty
*
* \sa
@ -1359,7 +1359,7 @@ int rect_testUnionRectEmpty(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_UnionRect() where rect B is inside rect A
*
* \sa
@ -1423,7 +1423,7 @@ int rect_testUnionRectInside(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Negative tests against SDL_UnionRect() with invalid parameters
*
* \sa
@ -1451,7 +1451,7 @@ int rect_testUnionRectParam(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_RectEmpty() with various inputs
*
* \sa
@ -1494,7 +1494,7 @@ int rect_testRectEmpty(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Negative tests against SDL_RectEmpty() with invalid parameters
*
* \sa
@ -1511,7 +1511,7 @@ int rect_testRectEmptyParam(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Tests SDL_RectEquals() with various inputs
*
* \sa
@ -1541,7 +1541,7 @@ int rect_testRectEquals(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* \brief Negative tests against SDL_RectEquals() with invalid parameters
*
* \sa
@ -1674,7 +1674,7 @@ static const SDLTest_TestCaseReference rectTest29 =
{ (SDLTest_TestCaseFp)rect_testRectEqualsParam, "rect_testRectEqualsParam", "Negative tests against SDL_RectEquals with invalid parameters", TEST_ENABLED };
/*!
/* !
* \brief Sequence of Rect test cases; functions that handle simple rectangles including overlaps and merges.
*
* \sa

View file

@ -165,7 +165,7 @@ _testGenericRWopsValidations(SDL_RWops *rw, int write)
i);
}
/*!
/* !
* Negative test for SDL_RWFromFile parameters
*
* \sa http://wiki.libsdl.org/moin.cgi/SDL_RWFromFile

View file

@ -262,7 +262,7 @@ surface_testSaveLoadBitmap(void *arg)
return TEST_COMPLETED;
}
/*!
/* !
* Tests surface conversion.
*/
int
@ -307,7 +307,7 @@ surface_testSurfaceConversion(void *arg)
}
/*!
/* !
* Tests surface conversion across all pixel formats.
*/
int

View file

@ -49,7 +49,7 @@
#define BPP 4
#define DEPTH 32
/*MUST BE A POWER OF 2! */
/* MUST BE A POWER OF 2! */
#define EVENT_BUF_SIZE 256
@ -102,9 +102,9 @@ void setpix(SDL_Surface *screen, float _x, float _y, unsigned int col)
SDL_memcpy(&colour,pixmem32,screen->format->BytesPerPixel);
SDL_GetRGB(colour,screen->format,&r,&g,&b);
/*r = 0;g = 0; b = 0; */
/* r = 0;g = 0; b = 0; */
a = (float)((col>>24)&0xFF);
if(a == 0) a = 0xFF; /*Hack, to make things easier. */
if(a == 0) a = 0xFF; /* Hack, to make things easier. */
a /= 0xFF;
r = (Uint8)(r*(1-a) + ((col>>16)&0xFF)*(a));
g = (Uint8)(g*(1-a) + ((col>> 8)&0xFF)*(a));
@ -127,7 +127,7 @@ void drawCircle(SDL_Surface* screen,float x,float y,float r,unsigned int c)
float xr;
for(ty = (float)-SDL_fabs(r);ty <= (float)SDL_fabs((int)r);ty++) {
xr = (float)sqrt(r*r - ty*ty);
if(r > 0) { /*r > 0 ==> filled circle */
if(r > 0) { /* r > 0 ==> filled circle */
for(tx=-xr+.5f;tx<=xr-.5;tx++) {
setpix(screen,x+tx,y+ty,c);
}
@ -157,7 +157,7 @@ void DrawScreen(SDL_Surface* screen)
setpix(screen,(float)x,(float)y,((x%255)<<16) + ((y%255)<<8) + (x+y)%255);
#endif
/*draw Touch History */
/* draw Touch History */
for(i = eventWrite; i < eventWrite+EVENT_BUF_SIZE; ++i) {
const SDL_Event *event = &events[i&(EVENT_BUF_SIZE-1)];
float age = (float)(i - eventWrite) / EVENT_BUF_SIZE;
@ -170,7 +170,7 @@ void DrawScreen(SDL_Surface* screen)
x = event->tfinger.x;
y = event->tfinger.y;
/*draw the touch: */
/* draw the touch: */
c = colors[event->tfinger.fingerId%7];
col = ((unsigned int)(c*(.1+.85))) | (unsigned int)(0xFF*age)<<24;
@ -210,7 +210,7 @@ int main(int argc, char* argv[])
/* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/*gesture variables */
/* gesture variables */
knob.r = .1f;
knob.ang = 0;
@ -225,7 +225,7 @@ int main(int argc, char* argv[])
while(!quitting) {
while(SDL_PollEvent(&event))
{
/*Record _all_ events */
/* Record _all_ events */
events[eventWrite & (EVENT_BUF_SIZE-1)] = event;
eventWrite++;

View file

@ -279,7 +279,7 @@ HapticPrintSupported(SDL_Haptic * haptic)
if (supported & SDL_HAPTIC_SINE)
SDL_Log(" sine\n");
/* !!! FIXME: put this back when we have more bits in 2.1 */
/*if (supported & SDL_HAPTIC_SQUARE)
/* if (supported & SDL_HAPTIC_SQUARE)
SDL_Log(" square\n"); */
if (supported & SDL_HAPTIC_TRIANGLE)
SDL_Log(" triangle\n");

View file

@ -356,7 +356,7 @@ main(int argc, char **argv)
quit(5);
}
/* Uncomment this to check vertex color with a YUV texture */
/*SDL_SetTextureColorMod(MooseTexture, 0xff, 0x80, 0x80); */
/* SDL_SetTextureColorMod(MooseTexture, 0xff, 0x80, 0x80); */
for (i = 0; i < MOOSEFRAMES_COUNT; i++) {
Uint8 MooseFrameRGB[MOOSEFRAME_SIZE*3];

View file

@ -127,7 +127,7 @@ Draw(DrawState *s)
/* Update the screen! */
SDL_RenderPresent(s->renderer);
/*SDL_Delay(10); */
/* SDL_Delay(10); */
}
int

View file

@ -29,11 +29,11 @@ typedef struct LoadedPicture {
void render(SDL_Renderer *renderer,SDL_Texture *texture,SDL_Rect texture_dimensions)
{
/*Clear render-target to blue. */
/* Clear render-target to blue. */
SDL_SetRenderDrawColor(renderer,0x00,0x00,0xff,0xff);
SDL_RenderClear(renderer);
/*Render the texture. */
/* Render the texture. */
SDL_RenderCopy(renderer,texture,&texture_dimensions,&texture_dimensions);
SDL_RenderPresent(renderer);
@ -188,17 +188,17 @@ int main(int argc,char** argv)
next_time += TICK_INTERVAL;
}
/*Free the textures. */
/* Free the textures. */
for(i=0;i<num_pictures;i++)
SDL_DestroyTexture(pictures[i].texture);
SDL_DestroyRenderer(renderer);
/*Destroy the window. */
/* Destroy the window. */
SDL_DestroyWindow(window);
/*Free the original surfaces backing the textures. */
/* Free the original surfaces backing the textures. */
for(i=0;i<num_pictures;i++)
SDL_FreeSurface(pictures[i].surface);
SDL_free(pictures);
/*Call SDL_VideoQuit() before quitting. */
/* Call SDL_VideoQuit() before quitting. */
SDL_VideoQuit();
return 0;

View file

@ -36,7 +36,7 @@ int SDLCALL
SubThreadFunc(void *data)
{
while (!*(int volatile *) data) {
; /*SDL_Delay(10); *//* do nothing */
; /* SDL_Delay(10); *//* do nothing */
}
return 0;
}