From a4798602d7a025dc13fd253d584dbf29dbec488d Mon Sep 17 00:00:00 2001 From: Tarek Soliman Date: Wed, 15 Feb 2012 09:53:31 -0600 Subject: 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) --- engines/cruise/function.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/cruise/function.cpp') diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp index 27b9be7e79..610465e962 100644 --- a/engines/cruise/function.cpp +++ b/engines/cruise/function.cpp @@ -142,7 +142,7 @@ int16 Op_AddProc() { if (procBss) { for (long int i = 0; i < pop1; i++) { - int16* ptr = (int16*)(procBss + i * 2); + int16* ptr = (int16 *)(procBss + i * 2); *ptr = param[i]; bigEndianShortToNative(ptr); } @@ -1046,7 +1046,7 @@ int16 Op_ComputeLine() { int y1 = popVar(); int x1 = popVar(); - point* pDest = (point*)popPtr(); + point* pDest = (point *)popPtr(); int maxValue = cor_droite(x1, y1, x2, y2, pDest); @@ -1334,7 +1334,7 @@ int16 Op_TrackAnim() { // setup actor position } int16 Op_BgName() { - char* bgName = (char*)popPtr(); + char* bgName = (char *)popPtr(); int bgIdx = popVar(); if ((bgIdx >= 0) && (bgIdx < NBSCREENS) && bgName) { @@ -1524,7 +1524,7 @@ int16 Op_Itoa() { param[i] = popVar(); int val = popVar(); - char* pDest = (char*)popPtr(); + char* pDest = (char *)popPtr(); if (!nbp) sprintf(txt, "%d", val); @@ -1645,7 +1645,7 @@ int16 Op_SetVolume() { } int16 Op_SongExist() { - const char *songName = (char*)popPtr(); + const char *songName = (char *)popPtr(); if (songName) { char name[33]; -- cgit v1.2.3