Skip to content

Commit

Permalink
Cleanup TODO's
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Nov 12, 2017
1 parent e311ece commit 24ec872
Show file tree
Hide file tree
Showing 24 changed files with 14 additions and 147 deletions.
7 changes: 0 additions & 7 deletions src/Layers/xrAPI/stdafx.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
// stdafx.cpp : source file that includes just the standard includes
// xrAPI.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
2 changes: 1 addition & 1 deletion src/editors/ActorEditor/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ECORE_API TfrmMain : public TForm
__fastcall TfrmMain(TComponent* Owner);
void __fastcall UpdateCaption();

__inline void SetHInst(HINSTANCE inst) { m_HInstance = inst; }
inline void SetHInst(HINSTANCE inst) { m_HInstance = inst; }
bool IsFocused() { return D3DWindow->Focused(); }
};

Expand Down
9 changes: 0 additions & 9 deletions src/editors/ActorEditor/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
//----------------------------------------------------
// file: stdafx.h
//----------------------------------------------------
#ifndef stdafxH
#define stdafxH

#pragma once

#pragma warn - pck
Expand Down Expand Up @@ -182,9 +176,6 @@ DEFINE_VECTOR(shared_str, RStrVec, RStrVecIt);
#define _omotions_ "$omotions$"
#define _smotion_ "$smotion$"
#define _detail_objects_ "$detail_objects$"
#endif

#define TEX_POINT_ATT "internal\\internal_light_attpoint"
#define TEX_SPOT_ATT "internal\\internal_light_attclip"

#pragma hdrstop
10 changes: 1 addition & 9 deletions src/editors/ECore/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
//----------------------------------------------------
// file: stdafx.h
//----------------------------------------------------
#ifndef stdafxECOREH
#define stdafxECOREH
#pragma once

#pragma warn - pck
Expand All @@ -29,7 +24,7 @@
#include <process.h>
#include <utime.h>

// iseful macros
// useful macros
// MSC names for functions
#ifdef _eof
#undef _eof
Expand Down Expand Up @@ -170,9 +165,6 @@ DEFINE_VECTOR(shared_str, RStrVec, RStrVecIt);
#define _omotions_ "$omotions$"
#define _smotion_ "$smotion$"
#define _detail_objects_ "$detail_objects$"
#endif

#define TEX_POINT_ATT "internal\\internal_light_attpoint"
#define TEX_SPOT_ATT "internal\\internal_light_attclip"

#pragma hdrstop
2 changes: 1 addition & 1 deletion src/editors/LevelEditor/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ECORE_API TfrmMain :
public: // User declarations
__fastcall TfrmMain(TComponent* Owner);
void __fastcall UpdateCaption();
__inline void SetHInst(HINSTANCE inst) { m_HInstance = inst; }
inline void SetHInst(HINSTANCE inst) { m_HInstance = inst; }
bool IsFocused() { return D3DWindow->Focused(); }
};
//---------------------------------------------------------------------------
Expand Down
15 changes: 3 additions & 12 deletions src/editors/LevelEditor/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
//----------------------------------------------------
// file: stdafx.h
//----------------------------------------------------
#ifndef stdafxH
#define stdafxH

#pragma once

#pragma warn - pck
Expand All @@ -26,11 +20,11 @@
#include <fastmath.h>
#include <io.h>
#include <fcntl.h>
#include <sys\stat.h>
#include <sys/*\*/stat.h>
#include <process.h>
#include <utime.h>

// iseful macros
// useful macros
// MSC names for functions
#ifdef _eof
#undef _eof
Expand Down Expand Up @@ -59,7 +53,7 @@ __inline float modff(float a, float* b)
}

__inline float expf(float val) { return ::exp(val); }
#include "xrCore/Platform.h"
#include "Common/Platform.hpp"

#ifdef _ECOREB
#define ECORE_API XR_EXPORT
Expand Down Expand Up @@ -180,9 +174,6 @@ DEFINE_VECTOR(shared_str, RStrVec, RStrVecIt);
#define _omotions_ "$omotions$"
#define _smotion_ "$smotion$"
#define _detail_objects_ "$detail_objects$"
#endif

#define TEX_POINT_ATT "internal\\internal_light_attpoint"
#define TEX_SPOT_ATT "internal\\internal_light_attclip"

#pragma hdrstop
2 changes: 1 addition & 1 deletion src/editors/ParticleEditor/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ECORE_API TfrmMain : public TForm
__fastcall TfrmMain(TComponent* Owner);
void __fastcall UpdateCaption();

__inline void SetHInst(HINSTANCE inst) { m_HInstance = inst; }
inline void SetHInst(HINSTANCE inst) { m_HInstance = inst; }
bool IsFocused() { return D3DWindow->Focused(); }
};

Expand Down
2 changes: 1 addition & 1 deletion src/editors/ShaderEditor/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ECORE_API TfrmMain :
public: // User declarations
__fastcall TfrmMain(TComponent* Owner);
void __fastcall UpdateCaption();
__inline void SetHInst(HINSTANCE inst) { m_HInstance = inst; }
inline void SetHInst(HINSTANCE inst) { m_HInstance = inst; }
bool IsFocused() { return D3DWindow->Focused(); }
};
//---------------------------------------------------------------------------
Expand Down
17 changes: 4 additions & 13 deletions src/editors/ShaderEditor/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
//----------------------------------------------------
// file: stdafx.h
//----------------------------------------------------
#ifndef stdafxH
#define stdafxH

#pragma once

#pragma warn - pck
Expand All @@ -26,11 +20,11 @@
#include <fastmath.h>
#include <io.h>
#include <fcntl.h>
#include <sys\stat.h>
#include <sys/stat.h>
#include <process.h>
#include <utime.h>

// iseful macros
// useful macros
// MSC names for functions
#ifdef _eof
#undef _eof
Expand All @@ -57,7 +51,7 @@ __inline float modff(float a, float* b)
return float(y);
}
__inline float expf(float val) { return ::exp(val); }
#include "xrCore/Platform.h"
#include "Common/Platform.hpp"
#ifdef _ECOREB
#define ECORE_API XR_IMPORT
#define ENGINE_API XR_EXPORT
Expand Down Expand Up @@ -88,7 +82,7 @@ DEFINE_VECTOR(ListItem*, ListItemsVec, ListItemsIt);

#include "xrCDB/xrCDB.h"
#include "xrSound/Sound.h"
#include "PSystem.h"
#include "xrParticles/psystem.h"

// DirectX headers
#include <d3d9.h>
Expand Down Expand Up @@ -166,9 +160,6 @@ DEFINE_VECTOR(shared_str, RStrVec, RStrVecIt);
#define _omotions_ "$omotions$"
#define _smotion_ "$smotion$"
#define _detail_objects_ "$detail_objects$"
#endif

#define TEX_POINT_ATT "internal\\internal_light_attpoint"
#define TEX_SPOT_ATT "internal\\internal_light_attclip"

#pragma hdrstop
10 changes: 1 addition & 9 deletions src/editors/xrEProps/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
//----------------------------------------------------
// file: stdafx.h
//----------------------------------------------------
#ifndef stdafxH
#define stdafxH

#pragma once

#include <xrCore/xrCore.h>
Expand All @@ -20,7 +14,7 @@ class MODEL;

#include "FolderLib.h"

#include "xrCore/Platform.h"
#include "Common/Platform.hpp"

#define ENGINE_API
#define DLL_API XR_IMPORT
Expand All @@ -32,5 +26,3 @@ class MODEL;
#pragma comment(lib, "xrSoundB.lib")
#pragma comment(lib, "xrCoreB.lib")
#pragma comment(lib, "EToolsB.lib")

#endif // stdafxH
7 changes: 0 additions & 7 deletions src/utils/xrAI/StdAfx.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
// stdafx.cpp : source file that includes just the standard includes
// xrAI.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
7 changes: 0 additions & 7 deletions src/utils/xrDO_Light/StdAfx.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
// stdafx.cpp : source file that includes just the standard includes
// xrAI.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
7 changes: 0 additions & 7 deletions src/utils/xrLC/StdAfx.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
// stdafx.cpp : source file that includes just the standard includes
// xrLBuilder.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
1 change: 0 additions & 1 deletion src/utils/xrSE_Factory/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#define ENGINE_API
#define ECORE_API
#define DLL_API XR_EXPORT
#define TIXML_USE_STL

#include "clsid_game.h"

Expand Down
2 changes: 1 addition & 1 deletion src/xrCDB/ISpatial_q_ray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void ISpatial_DB::q_ray(
}
}
else
{ // XXX: delete this branch since we always have SSE feature
{
if (_o & O_ONLYFIRST)
{
if (_o & O_ONLYNEAREST)
Expand Down
12 changes: 0 additions & 12 deletions src/xrCDB/StdAfx.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
// stdafx.cpp : source file that includes just the standard includes
// xrCDB.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"
#pragma hdrstop

#ifdef __BORLANDC__
#pragma comment(lib, "xrCoreB.lib")
#else
#pragma comment(lib, "xrCore.lib")
#pragma comment(lib, "xrApi.lib")
#endif

#pragma comment(lib, "winmm.lib")

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
2 changes: 0 additions & 2 deletions src/xrCDB/StdAfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,5 @@ IC void cdelete(T*& ptr)
#define ENGINE_API
#include "OPCODE/Opcode.h"

// TODO: reference additional headers your program requires here

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
4 changes: 0 additions & 4 deletions src/xrCommon/inlining_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
#define __thread __declspec(thread)
#endif

// XXX: remove
#define _inline inline
#define __inline inline

// XXX: remove IC/ICF/ICN
#define IC inline
#define ICF FORCE_INLINE
Expand Down
7 changes: 0 additions & 7 deletions src/xrCore/stdafx.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
// stdafx.cpp : source file that includes just the standard includes
// xrCore.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
2 changes: 0 additions & 2 deletions src/xrEngine/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#endif

// global variables
// XXX: use g_dedicated_server from xrAPI
ENGINE_API bool g_dedicated_server = false;
ENGINE_API CApplication* pApp = nullptr;
ENGINE_API CInifile* pGameIni = nullptr;
ENGINE_API bool g_bBenchmark = false;
Expand Down
3 changes: 0 additions & 3 deletions src/xrEngine/stdafx.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
// stdafx.cpp : source file that includes just the standard includes
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"
7 changes: 0 additions & 7 deletions src/xrGameSpy/stdafx.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
// stdafx.cpp : source file that includes just the standard includes
// xrGameSpy.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
7 changes: 0 additions & 7 deletions src/xrPhysics/stdafx.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
// stdafx.cpp : source file that includes just the standard includes
// xrPhysics.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
17 changes: 0 additions & 17 deletions src/xrSound/stdafx.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
// stdafx.cpp : source file that includes just the standard includes
// xrSound.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file

#ifdef __BORLANDC__
#pragma comment(lib, "eaxB.lib")
#pragma comment(lib, "vorbisfileB.lib")
#pragma comment(lib, "xrCoreB.lib")
#pragma comment(lib, "EToolsB.lib")
#pragma comment(lib, "OpenAL32B.lib")
#pragma comment(lib, "dsoundb.lib")
//#pragma comment(lib, "xrAPI.lib")
#endif

0 comments on commit 24ec872

Please sign in to comment.