avoid the extern keyword in .cpp files

This commit is contained in:
degasus
2014-07-11 16:10:20 +02:00
parent 6d3f249dcc
commit 81ed17be53
42 changed files with 28 additions and 104 deletions
+1 -1
View File
@@ -916,7 +916,7 @@ u32 EncodeVm(ARMReg Vm)
}
// Double/single, Neon
extern const VFPEnc VFPOps[16][2] = {
const VFPEnc VFPOps[16][2] = {
{{0xE0, 0xA0}, { -1, -1}}, // 0: VMLA
{{0xE1, 0xA4}, { -1, -1}}, // 1: VNMLA
{{0xE0, 0xA4}, { -1, -1}}, // 2: VMLS
+1 -1
View File
@@ -22,7 +22,7 @@ typedef std::string (*StringTranslator)(const char* text);
void RegisterMsgAlertHandler(MsgAlertHandler handler);
void RegisterStringTranslator(StringTranslator translator);
extern bool MsgAlert(bool yes_no, int Style, const char* format, ...)
bool MsgAlert(bool yes_no, int Style, const char* format, ...)
#ifdef __GNUC__
__attribute__((format(printf, 3, 4)))
#endif
+1 -1
View File
@@ -136,4 +136,4 @@ private:
bool m_needs_resume_mail;
};
extern UCodeInterface* UCodeFactory(u32 crc, DSPHLE *dsphle, bool wii);
UCodeInterface* UCodeFactory(u32 crc, DSPHLE *dsphle, bool wii);
+1 -1
View File
@@ -53,4 +53,4 @@ public:
TEXIDevices m_deviceType;
};
extern IEXIDevice* EXIDevice_Create(const TEXIDevices device_type, const int channel_num);
IEXIDevice* EXIDevice_Create(const TEXIDevices device_type, const int channel_num);
-1
View File
@@ -47,7 +47,6 @@ extern u8 *m_pEXRAM;
extern u8 *m_pL1Cache;
extern u8 *m_pVirtualFakeVMEM;
extern u8 *m_pFakeVMEM;
extern bool bFakeVMEM;
enum
{
+1 -9
View File
@@ -22,6 +22,7 @@
#include "Core/HW/GPFifo.h"
#include "Core/HW/Memmap.h"
#include "Core/HW/MMIO.h"
#include "Core/PowerPC/JitInterface.h"
#include "Core/PowerPC/PowerPC.h"
#include "VideoCommon/VideoBackendBase.h"
@@ -53,15 +54,6 @@ GXPeekZ
// From Memmap.cpp
// ----------------
// Pointers to low memory
extern u8 *m_pFakeVMEM;
extern u8 *m_pEXRAM; // Wii
extern u8 *m_pEFB;
// Init
extern bool m_IsInitialized;
extern bool bFakeVMEM;
// Overloaded byteswap functions, for use within the templated functions below.
inline u8 bswap(u8 val) {return val;}
inline u16 bswap(u16 val) {return Common::swap16(val);}
+1 -1
View File
@@ -95,4 +95,4 @@ public:
}
};
extern ISIDevice* SIDevice_Create(const SIDevices device, const int port_number);
ISIDevice* SIDevice_Create(const SIDevices device, const int port_number);
@@ -50,8 +50,6 @@ typedef struct pollfd pollfd_t;
#include <errno.h>
#endif
extern std::queue<std::pair<u32,std::string> > g_ReplyQueueLater;
// **********************************************************************************
// Handle /dev/net/kd/request requests
CWII_IPC_HLE_Device_net_kd_request::CWII_IPC_HLE_Device_net_kd_request(u32 _DeviceID, const std::string& _rDeviceName)
-5
View File
@@ -142,11 +142,6 @@ ps_adds1
static int CODE_SIZE = 1024*1024*32;
namespace CPUCompare
{
extern u32 m_BlockStart;
}
void Jit64::Init()
{
jo.optimizeStack = true;
@@ -234,11 +234,6 @@ namespace JitILProfiler
static int CODE_SIZE = 1024*1024*32;
namespace CPUCompare
{
extern u32 m_BlockStart;
}
void JitIL::Init()
{
jo.optimizeStack = true;
@@ -26,10 +26,6 @@ using namespace ArmGen;
using namespace PowerPC;
static int CODE_SIZE = 1024*1024*32;
namespace CPUCompare
{
extern u32 m_BlockStart;
}
void JitArm::Init()
{
@@ -14,8 +14,6 @@
#include "Core/PowerPC/JitArm32/JitAsm.h"
#include "Core/PowerPC/JitArm32/JitRegCache.h"
extern u32 Helper_Mask(u8 mb, u8 me);
// Assumes that Sign and Zero flags were set by the last operation. Preserves all flags and registers.
// Jit64 ComputerRC is signed
// JIT64 GenerateRC is unsigned
+1 -4
View File
@@ -25,10 +25,7 @@ using namespace ArmGen;
using namespace PowerPC;
static int CODE_SIZE = 1024*1024*32;
namespace CPUCompare
{
extern u32 m_BlockStart;
}
void JitArmIL::Init()
{
AllocCodeSpace(CODE_SIZE);
@@ -19,8 +19,6 @@
using namespace Gen;
extern u8 *trampolineCodePtr;
#if _M_X86_64
static void BackPatchError(const std::string &text, u8 *codePtr, u32 emAddress) {
u64 code_addr = (u64)codePtr;
+1 -2
View File
@@ -44,13 +44,12 @@
#include "DolphinWX/Frame.h"
#include "DolphinWX/GeckoCodeDiag.h"
#include "DolphinWX/ISOProperties.h"
#include "DolphinWX/Main.h"
#include "DolphinWX/WxUtils.h"
class wxWindow;
#define MAX_CHEAT_SEARCH_RESULTS_DISPLAY 256
extern std::vector<ActionReplay::ARCode> arCodes;
extern CFrame* main_frame;
// meh
static wxCheatsWindow *g_cheat_window;
-2
View File
@@ -71,8 +71,6 @@ const CPUCore CPUCores[] = {
#endif
};
extern CFrame* main_frame;
// keep these in sync with CConfigMain::InitializeGUILists
static const wxLanguage langIds[] =
{
@@ -43,12 +43,6 @@ BEGIN_EVENT_TABLE(GFXDebuggerPanel, wxPanel)
EVT_BUTTON(ID_CLEAR_PIXEL_SHADER_CACHE,GFXDebuggerPanel::OnClearPixelShaderCacheButton)
END_EVENT_TABLE()
// From VideoCommon
extern GFXDebuggerBase *g_pdebugger;
extern volatile bool GFXDebuggerPauseFlag;
extern volatile PauseEvent GFXDebuggerToPauseAtNext;
extern volatile int GFXDebuggerEventToPauseCount;
GFXDebuggerPanel::GFXDebuggerPanel(wxWindow *parent, wxWindowID id, const wxPoint &position,
const wxSize& size, long style, const wxString &title)
: wxPanel(parent, id, position, size, style, title)
+1 -3
View File
@@ -61,6 +61,7 @@
#include "DolphinWX/GameListCtrl.h"
#include "DolphinWX/Globals.h"
#include "DolphinWX/LogWindow.h"
#include "DolphinWX/Main.h"
#include "DolphinWX/TASInputDlg.h"
#include "DolphinWX/WxUtils.h"
#include "DolphinWX/Debugger/CodeWindow.h"
@@ -88,9 +89,6 @@ HWND MSWGetParent_(HWND Parent)
// ---------------
// The CPanel class to receive MSWWindowProc messages from the video backend.
extern CFrame* main_frame;
BEGIN_EVENT_TABLE(CPanel, wxPanel)
END_EVENT_TABLE()
-2
View File
@@ -84,8 +84,6 @@ size_t CGameListCtrl::m_numberItem = 0;
std::string CGameListCtrl::m_currentFilename;
static bool sorted = false;
extern CFrame* main_frame;
static int CompareGameListItems(const GameListItem* iso1, const GameListItem* iso2,
long sortData = CGameListCtrl::COLUMN_TITLE)
{
+1 -1
View File
@@ -42,6 +42,7 @@
#include "DolphinWX/Frame.h"
#include "DolphinWX/GameListCtrl.h"
#include "DolphinWX/ISOFile.h"
#include "DolphinWX/Main.h"
#include "DolphinWX/NetWindow.h"
#include "DolphinWX/WxUtils.h"
@@ -56,7 +57,6 @@ END_EVENT_TABLE()
static NetPlayServer* netplay_server = nullptr;
static NetPlayClient* netplay_client = nullptr;
extern CFrame* main_frame;
NetPlayDiag *NetPlayDiag::npd = nullptr;
static std::string BuildGameName(const GameListItem& game)

Some files were not shown because too many files have changed in this diff Show More