mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Standardize on C++ headers.
Also removes a bunch of duplicate #includes of stuff that's already pulled in by HeadSpin.h.
This commit is contained in:
@ -43,7 +43,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "HeadSpin.h"
|
||||
#include "hsWindows.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <direct.h> // windows directory handling fxns (for chdir)
|
||||
#include <process.h>
|
||||
#include <shellapi.h> // ShellExecuteA
|
||||
|
@ -54,8 +54,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <cctype>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <cstdarg>
|
||||
#include <cstdint>
|
||||
|
||||
//======================================
|
||||
// Winblows Hacks
|
||||
@ -77,7 +77,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// even more bloated than before!
|
||||
struct HWND__; typedef struct HWND__ *HWND;
|
||||
struct HINSTANCE__; typedef struct HINSTANCE__ *HINSTANCE;
|
||||
|
||||
|
||||
typedef HWND hsWindowHndl;
|
||||
typedef HINSTANCE hsWindowInst;
|
||||
typedef HINSTANCE HMODULE;
|
||||
|
@ -45,8 +45,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "hsBitVector.h"
|
||||
#include "hsTemplates.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
hsBitVector::hsBitVector(int b, ...)
|
||||
: fBitVectors(nil),
|
||||
fNumBitVectors(0)
|
||||
|
@ -40,8 +40,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
*==LICENSE==*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "hsMemory.h"
|
||||
#include "hsExceptions.h"
|
||||
|
||||
|
@ -39,18 +39,15 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include <ctype.h>
|
||||
#include "hsStream.h"
|
||||
#include "hsMemory.h"
|
||||
|
||||
|
||||
#include "hsTemplates.h"
|
||||
|
||||
#if HS_BUILD_FOR_UNIX
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
#if HS_BUILD_FOR_WIN32
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
@ -42,8 +42,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#ifndef hsStream_Defined
|
||||
#define hsStream_Defined
|
||||
|
||||
#include <stdarg.h> // Included for GCC 3.2.2+
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsMemory.h"
|
||||
#include "plFileSystem.h"
|
||||
|
@ -46,8 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "hsMemory.h"
|
||||
#include "hsRefCnt.h"
|
||||
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <cstdarg>
|
||||
|
||||
|
||||
#ifdef HS_DEBUGGING
|
||||
|
@ -44,7 +44,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include <sys/errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <cstring>
|
||||
|
||||
#define NO_POSIX_CLOCK 1
|
||||
|
||||
@ -146,8 +146,8 @@ void hsThread::ThreadYield()
|
||||
//#define MUTEX_TIMING
|
||||
#ifdef MUTEX_TIMING
|
||||
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <ctime>
|
||||
#include <cstdio>
|
||||
#include <unistd.h>
|
||||
#include "hsWide.h"
|
||||
|
||||
@ -168,8 +168,8 @@ static void InitMutexTimerFile()
|
||||
//#define EVENT_LOGGING
|
||||
#ifdef EVENT_LOGGING
|
||||
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <ctime>
|
||||
#include <cstdio>
|
||||
#include <unistd.h>
|
||||
#include "NucleusLib/inc/hsTimer.h"
|
||||
|
||||
|
@ -40,7 +40,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
*==LICENSE==*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
class plString;
|
||||
|
||||
|
@ -40,7 +40,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
*==LICENSE==*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cmath>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
|
@ -49,7 +49,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// //
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "hsTimer.h"
|
||||
#include "HeadSpin.h"
|
||||
#include "pfGameGUIMgr.h"
|
||||
|
@ -48,7 +48,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "HeadSpin.h"
|
||||
|
||||
#include "plUoid.h"
|
||||
#include <string.h>
|
||||
|
||||
#include "plFixedKey.h"
|
||||
#include "plCreatableIndex.h"
|
||||
|
@ -50,7 +50,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "HeadSpin.h"
|
||||
#include "plKey.h"
|
||||
#include "plUoid.h"
|
||||
#include <string.h>
|
||||
#include "hsResMgr.h"
|
||||
|
||||
#define TRACK_REFS 0 // MEMLEAKFISH
|
||||
|
@ -46,14 +46,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "hsBitVector.h"
|
||||
#include "plNetGroup.h"
|
||||
|
||||
#include "pnKeyedObject/hsKeyedObject.h"
|
||||
#include "pnKeyedObject/hsKeyedObject.h"
|
||||
#include "pnKeyedObject/plUoid.h"
|
||||
|
||||
|
||||
#include "plStatusLog/plLoggable.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#define plVerifyConditionRet(NetApp,cond,ret,str) \
|
||||
do { \
|
||||
if (!(cond)) { \
|
||||
|
@ -48,7 +48,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
# include <netinet/in.h>
|
||||
# include <arpa/inet.h>
|
||||
# include <netdb.h>
|
||||
# include <string.h> // for memcpy
|
||||
# include <cstring> // for memcpy
|
||||
#elif !defined(HS_BUILD_FOR_WIN32)
|
||||
#error "Not implemented for this platform"
|
||||
#endif
|
||||
|
@ -48,7 +48,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// 3.5.2001 - Created by mcn. //
|
||||
// //
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
#include <string.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "plAudioFileReader.h"
|
||||
|
@ -52,9 +52,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// //
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "HeadSpin.h"
|
||||
#include "plBufferedFileReader.h"
|
||||
#include "plFileSystem.h"
|
||||
|
@ -51,9 +51,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// //
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "HeadSpin.h"
|
||||
#include "plFastWavReader.h"
|
||||
|
||||
|
@ -48,7 +48,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "plSoundDeswizzler.h"
|
||||
#include <string.h>
|
||||
|
||||
|
||||
plSoundDeswizzler::plSoundDeswizzler( void *srcPtr, uint32_t srcLength, uint8_t numChannels, uint32_t sampleSize )
|
||||
|
@ -39,7 +39,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include <stdio.h>
|
||||
#include "plWavFile.h"
|
||||
|
||||
#ifdef BUILDING_MAXPLUGIN
|
||||
@ -52,8 +51,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
#include <dsound.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#pragma comment(lib, "winmm.lib")
|
||||
#ifdef PATCHER
|
||||
#define DXTRACE_ERR(str,hr) hr // I'm not linking in directx stuff to the just for this
|
||||
|
@ -40,10 +40,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
*==LICENSE==*/
|
||||
#include "hsStringTable.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
#if HS_BUILD_FOR_UNIX
|
||||
#include <ctype.h>
|
||||
#include <cctype>
|
||||
#endif
|
||||
|
||||
//
|
||||
// hsStringTable
|
||||
//
|
||||
|
@ -44,7 +44,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "HeadSpin.h"
|
||||
#include <fstream>
|
||||
#include <algorithm>
|
||||
#include <stdarg.h>
|
||||
#include <sstream>
|
||||
|
||||
const plString& plConfigInfo::GlobalSection()
|
||||
|
@ -43,7 +43,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#define plConfigInfo_h_inc
|
||||
|
||||
#include "plKeysAndValues.h"
|
||||
#include <stdarg.h>
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
|
||||
|
@ -170,7 +170,7 @@ protected:
|
||||
#define SIM_VERBOSE
|
||||
|
||||
#ifdef SIM_VERBOSE
|
||||
#include <stdarg.h> // only include when we need to call plSimulationMgr::Log
|
||||
#include <cstdarg> // only include when we need to call plSimulationMgr::Log
|
||||
|
||||
inline void SimLog(const char *str, ...)
|
||||
{
|
||||
@ -189,4 +189,4 @@ inline void SimLog(const char *str, ...)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -447,7 +447,6 @@ public:
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <stdio.h>
|
||||
#include "HeadSpin.h"
|
||||
|
||||
class plDemoDebugFile
|
||||
|
@ -49,15 +49,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// //
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "HeadSpin.h"
|
||||
#include "plProgressMgr.h"
|
||||
#include "hsTimer.h"
|
||||
|
||||
#include "plPipeline/plPlates.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//// plProgressMgr Functions /////////////////////////////////////////////////
|
||||
|
@ -41,7 +41,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
*==LICENSE==*/
|
||||
#include "plBufferedSocketReader.h"
|
||||
#include "plTcpSocket.h"
|
||||
#include <string.h>
|
||||
#include <cstring>
|
||||
|
||||
|
||||
plBufferedSocketReader::plBufferedSocketReader(int size)
|
||||
|
@ -51,8 +51,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
#include "plEncryptLogLine.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
void plStatusEncrypt::Decrypt( uint8_t *line, int32_t len, uint8_t hint )
|
||||
{
|
||||
// Da reverse, of course!
|
||||
|
@ -42,7 +42,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#ifndef plLoggable_inc
|
||||
#define plLoggable_inc
|
||||
|
||||
#include <stdio.h>
|
||||
#include "HeadSpin.h"
|
||||
#include "plString.h"
|
||||
|
||||
|
@ -55,8 +55,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// //
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstdarg>
|
||||
#include <cstdlib>
|
||||
#include "hsThread.h"
|
||||
#include "hsTemplates.h"
|
||||
#include "hsTimer.h"
|
||||
|
@ -52,7 +52,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include <algorithm>
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
|
||||
// Core Plasma
|
||||
|
@ -40,7 +40,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
*==LICENSE==*/
|
||||
|
||||
#include <string.h>
|
||||
#include <cstring>
|
||||
#pragma hdrstop
|
||||
|
||||
#include "StringTokenizer.h"
|
||||
|
@ -66,7 +66,6 @@ REGISTER_CREATABLE(plInitialAgeStateLoadedMsg);
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include <Commdlg.h>
|
||||
#include <stdio.h>
|
||||
#include <commctrl.h>
|
||||
#include <shlwapi.h>
|
||||
#include <shlobj.h>
|
||||
|
Reference in New Issue
Block a user