mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g' This seems to have caught some params as well which is not undesirable IMO. It also caught some strings containing this which is undesirable so I excluded them manually. (engines/sci/engine/kernel_tables.h)
This commit is contained in:
@@ -60,7 +60,7 @@ char *TextFile::giveLine(uint32 num) {
|
||||
}
|
||||
|
||||
void TextFile::read(FILE *inf) {
|
||||
char *line = (char*)malloc(4096);
|
||||
char *line = (char *)malloc(4096);
|
||||
_lines = (char**)malloc(4096 * sizeof(char *));
|
||||
_numLines = 0;
|
||||
uint32 linesMax = 4096;
|
||||
@@ -78,7 +78,7 @@ void TextFile::read(FILE *inf) {
|
||||
start++;
|
||||
}
|
||||
uint32 length = crop(start);
|
||||
_lines[_numLines] = (char*)malloc(length + 1);
|
||||
_lines[_numLines] = (char *)malloc(length + 1);
|
||||
memcpy(_lines[_numLines], start, length + 1);
|
||||
_numLines++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user