diff options
author | Einar Johan Trøan Sømåen | 2012-05-11 16:03:59 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-02 13:01:15 +0200 |
commit | ba6a2ac66ea3e679246a28e81013f7c4794ed564 (patch) | |
tree | 9e187c8259f0ad8f38b29c4d66abef675a9e7ff3 /engines/wintermute/scriptables/SXFile.cpp | |
parent | 2ee58d2dc3f78e03f25edf7103403ee06ba9ab7a (diff) | |
download | scummvm-rg350-ba6a2ac66ea3e679246a28e81013f7c4794ed564.tar.gz scummvm-rg350-ba6a2ac66ea3e679246a28e81013f7c4794ed564.tar.bz2 scummvm-rg350-ba6a2ac66ea3e679246a28e81013f7c4794ed564.zip |
WINTERMUTE: Run Astyle on code-files to reformat.
Diffstat (limited to 'engines/wintermute/scriptables/SXFile.cpp')
-rw-r--r-- | engines/wintermute/scriptables/SXFile.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/wintermute/scriptables/SXFile.cpp b/engines/wintermute/scriptables/SXFile.cpp index fa860e56b6..a27376750a 100644 --- a/engines/wintermute/scriptables/SXFile.cpp +++ b/engines/wintermute/scriptables/SXFile.cpp @@ -200,7 +200,7 @@ HRESULT CSXFile::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This return S_OK;
}
uint32 BufSize = FILE_BUFFER_SIZE;
- byte *Buf = (byte *)malloc(BufSize);
+ byte *Buf = (byte *)malloc(BufSize);
uint32 Counter = 0;
byte b;
bool FoundNewLine = false;
@@ -210,7 +210,7 @@ HRESULT CSXFile::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This if (FAILED(Ret)) break;
if (Counter > BufSize) {
- Buf = (byte *)realloc(Buf, BufSize + FILE_BUFFER_SIZE);
+ Buf = (byte *)realloc(Buf, BufSize + FILE_BUFFER_SIZE);
BufSize += FILE_BUFFER_SIZE;
}
if (b == '\n') {
@@ -225,7 +225,7 @@ HRESULT CSXFile::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This } while (SUCCEEDED(Ret));
if (Counter > BufSize) {
- Buf = (byte *)realloc(Buf, BufSize + FILE_BUFFER_SIZE);
+ Buf = (byte *)realloc(Buf, BufSize + FILE_BUFFER_SIZE);
BufSize += FILE_BUFFER_SIZE;
}
Buf[Counter] = '\0';
@@ -251,7 +251,7 @@ HRESULT CSXFile::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This return S_OK;
}
uint32 BufSize = FILE_BUFFER_SIZE;
- byte *Buf = (byte *)malloc(BufSize);
+ byte *Buf = (byte *)malloc(BufSize);
uint32 Counter = 0;
byte b;
@@ -261,7 +261,7 @@ HRESULT CSXFile::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This if (FAILED(Ret)) break;
if (Counter > BufSize) {
- Buf = (byte *)realloc(Buf, BufSize + FILE_BUFFER_SIZE);
+ Buf = (byte *)realloc(Buf, BufSize + FILE_BUFFER_SIZE);
BufSize += FILE_BUFFER_SIZE;
}
if (b == 0x0D) continue;
@@ -272,7 +272,7 @@ HRESULT CSXFile::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This }
if (Counter > BufSize) {
- Buf = (byte *)realloc(Buf, BufSize + FILE_BUFFER_SIZE);
+ Buf = (byte *)realloc(Buf, BufSize + FILE_BUFFER_SIZE);
BufSize += FILE_BUFFER_SIZE;
}
Buf[Counter] = '\0';
@@ -335,7 +335,7 @@ HRESULT CSXFile::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This return S_OK;
}
byte Val;
- if (SUCCEEDED(_readFile->Read(&Val, sizeof(byte )))) Stack->PushInt(Val);
+ if (SUCCEEDED(_readFile->Read(&Val, sizeof(byte)))) Stack->PushInt(Val);
else Stack->PushNULL();
return S_OK;
|