aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp32
diff options
context:
space:
mode:
authorMax Horn2007-09-18 20:16:33 +0000
committerMax Horn2007-09-18 20:16:33 +0000
commit3abc11611e1d1d93f1cf794df28879de3571bd01 (patch)
treee1ac8a925d1388f8df010a114d7bed471fc9fe3b /backends/platform/gp32
parentc3d3aebe87d16d4fc3b7ac8581b99fb97241c9ac (diff)
downloadscummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.gz
scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.bz2
scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.zip
Code formatting fixes
svn-id: r28945
Diffstat (limited to 'backends/platform/gp32')
-rw-r--r--backends/platform/gp32/debug-gdbstub-usb.cpp24
-rw-r--r--backends/platform/gp32/gp32std_input.cpp2
-rw-r--r--backends/platform/gp32/gp32std_memory.cpp6
3 files changed, 16 insertions, 16 deletions
diff --git a/backends/platform/gp32/debug-gdbstub-usb.cpp b/backends/platform/gp32/debug-gdbstub-usb.cpp
index d18a1990b5..9899ae47ec 100644
--- a/backends/platform/gp32/debug-gdbstub-usb.cpp
+++ b/backends/platform/gp32/debug-gdbstub-usb.cpp
@@ -215,7 +215,7 @@ void WaitACK()
bool bBreak = false;
int iResult;
- while(!bBreak) {
+ while (!bBreak) {
iResult = g_Comm.comm_recv((unsigned char *)g_SendBuffer, 0x100);
if (iResult > 0) {
bBreak = true;
@@ -234,7 +234,7 @@ void SendCommand(unsigned char *pCommand)
g_SendBuffer[iOffset++] = '$';
iCheckSum = 0;
- while(*pCommand != 0) {
+ while (*pCommand != 0) {
g_SendBuffer[iOffset++] = *pCommand;
iCheckSum += *pCommand++;
}
@@ -285,7 +285,7 @@ void SendCommandSize(unsigned char *pCommand, int iSize)
g_SendBuffer[iOffset++] = '$';
iCheckSum = 0;
- while(*pCommand != 0) {
+ while (*pCommand != 0) {
g_SendBuffer[iOffset++] = *pCommand;
iCheckSum += *pCommand++;
}
@@ -340,7 +340,7 @@ void HexToStringBW(char *pString, int iNumber)
// equiv to strcat i imagine
void PrintToString(char *pString, char *pOtherString)
{
- while(*pOtherString != 0) {
+ while (*pOtherString != 0) {
*pString = *pOtherString;
*pString++;
*pOtherString++;
@@ -644,7 +644,7 @@ void WriteMemory(void *pAddr, unsigned int uiBytes, char *pHexString)
uiOffset += 2;
}
/*
- while(1);
+ while (1);
unsigned int *piData = (unsigned int *)pAddr;
*piData = 0xe7ffdefe;//0xfedeffe7;
*/
@@ -696,7 +696,7 @@ int FindChar(char *pBuffer, char sign)
{
int iRetVal = 0;
- while(*pBuffer != sign) {
+ while (*pBuffer != sign) {
iRetVal++;
*pBuffer++;
}
@@ -830,7 +830,7 @@ void ISR()
break;
case MODE_DUNNO:
default:
- while(1);
+ while (1);
}
*/
SendBreakPoint();
@@ -928,7 +928,7 @@ void ISR()
case MODE_DUNNO:
default:
//Printf("Dunno!!\n");
- while(1);
+ while (1);
}
@@ -1035,13 +1035,13 @@ void BreakPoint()
Printf("Restore: 0x%x", g_SavedStepInstruction);
#endif
} else {
- while(1);
+ while (1);
}
g_LastWasStep = false;
}
- while(!bBreakLoop) {
+ while (!bBreakLoop) {
iResult = RecvUSB(g_ReadBuffer, 0x100);
//Printf("%d\n", iResult);
@@ -1061,7 +1061,7 @@ void BreakPoint()
// I can see that i get a bunch of '+' and '-' in the messages.. lets remove them.
iOffsetAdd = 4;
- while((g_ReadBuffer[iOffsetAdd] == '+') || (g_ReadBuffer[iOffsetAdd] == '-')) iOffsetAdd++;
+ while ((g_ReadBuffer[iOffsetAdd] == '+') || (g_ReadBuffer[iOffsetAdd] == '-')) iOffsetAdd++;
// Check whether it's legimit command
if (g_ReadBuffer[iOffsetAdd] == '$') {
@@ -1608,7 +1608,7 @@ unsigned int ROR(unsigned int uiValue, unsigned int uiSteps)
{
unsigned int uiRetval;
- while(uiSteps-- > 0) {
+ while (uiSteps-- > 0) {
if (uiValue & 0x01) {
uiValue = (uiValue >> 1) | 0x80000000;
} else {
diff --git a/backends/platform/gp32/gp32std_input.cpp b/backends/platform/gp32/gp32std_input.cpp
index b36535dbc6..de82f8b0bc 100644
--- a/backends/platform/gp32/gp32std_input.cpp
+++ b/backends/platform/gp32/gp32std_input.cpp
@@ -195,7 +195,7 @@ bool gp_pumpButtonEvent() {
bool gp_pollButtonEvent(GP32BtnEvent *ev) {
gp_pumpButtonEvent();
- if(eventQueue.isEmpty()) {
+ if (eventQueue.isEmpty()) {
return false;
}
diff --git a/backends/platform/gp32/gp32std_memory.cpp b/backends/platform/gp32/gp32std_memory.cpp
index 17569e4917..449fec9f95 100644
--- a/backends/platform/gp32/gp32std_memory.cpp
+++ b/backends/platform/gp32/gp32std_memory.cpp
@@ -114,7 +114,7 @@ void *MemBlock::addBlock(size_t size)
}
blk++;
}
- if(i == NUM_BLOCK) {
+ if (i == NUM_BLOCK) {
blk = &block[0];
for (i = 0; i < prevBlock; i++) {
if (!blk->used) {
@@ -122,7 +122,7 @@ void *MemBlock::addBlock(size_t size)
}
blk++;
}
- if(i == prevBlock) {
+ if (i == prevBlock) {
prevBlock = 0;
return gm_malloc(size);
}
@@ -289,7 +289,7 @@ void *operator new(size_t size) {
void *ptr = gp_malloc(size);
#if defined(CLEAN_MEMORY_WITH_0xE7)
- if(ptr != NULL) {
+ if (ptr != NULL) {
gp_memset(ptr, 0xE7, size);
}
#endif