avoid the extern keyword in .cpp files

This commit is contained in:
degasus
2014-07-08 16:49:33 +02:00
parent 6d3f249dcc
commit 81ed17be53
42 changed files with 28 additions and 104 deletions

View File

@ -21,9 +21,6 @@
#include "VideoCommon/Statistics.h"
#include "VideoCommon/VideoConfig.h"
extern int frameCount;
namespace DX11
{

View File

@ -16,12 +16,10 @@
#include "VideoCommon/RenderBase.h"
#include "VideoCommon/Statistics.h"
#include "VideoCommon/TextureCacheBase.h"
#include "VideoCommon/VertexLoader.h"
#include "VideoCommon/VertexShaderManager.h"
#include "VideoCommon/VideoConfig.h"
// internal state for loading vertices
extern NativeVertexFormat *g_nativeVertexFmt;
namespace DX11
{

View File

@ -17,7 +17,7 @@ enum GLSL_VERSION {
};
// ogl-only config, so not in VideoConfig.h
extern struct VideoConfig {
struct VideoConfig {
bool bSupportsGLSLCache;
bool bSupportsGLPinnedMemory;
bool bSupportsGLSync;
@ -35,7 +35,8 @@ extern struct VideoConfig {
const char* glsl_version;
s32 max_samples;
} g_ogl_config;
};
extern VideoConfig g_ogl_config;
class Renderer : public ::Renderer
{

View File

@ -29,9 +29,6 @@
#include "VideoCommon/VertexShaderManager.h"
#include "VideoCommon/VideoConfig.h"
// internal state for loading vertices
extern NativeVertexFormat *g_nativeVertexFmt;
namespace OGL
{
//This are the initially requested size for the buffers expressed in bytes

View File

@ -15,6 +15,7 @@
#include "VideoBackends/Software/SWVideoConfig.h"
#include "VideoBackends/Software/TextureSampler.h"
#include "VideoCommon/Fifo.h"
#include "VideoCommon/ImageWrite.h"

View File

@ -14,6 +14,7 @@
#include "VideoBackends/Software/SWStatistics.h"
#include "VideoBackends/Software/SWVideoConfig.h"
#include "VideoBackends/Software/TextureEncoder.h"
#include "VideoCommon/Fifo.h"
static const float s_gammaLUT[] =
{

View File

@ -14,6 +14,7 @@
#include "VideoBackends/Software/SWVideoConfig.h"
#include "VideoBackends/Software/XFMemLoader.h"
#include "VideoCommon/DataReader.h"
#include "VideoCommon/Fifo.h"
typedef void (*DecodingFunction)(u32);

View File

@ -20,6 +20,8 @@
#include "VideoBackends/Software/SWCommandProcessor.h"
#include "VideoBackends/Software/VideoBackend.h"
#include "VideoCommon/DataReader.h"
#include "VideoCommon/Fifo.h"
namespace SWCommandProcessor
{

View File

@ -11,9 +11,6 @@
class PointerWrap;
namespace MMIO { class Mapping; }
extern volatile bool g_bSkipCurrentFrame;
extern u8* g_pVideoData;
namespace SWCommandProcessor
{
using UCPStatusReg = CommandProcessor::UCPStatusReg;

View File

@ -12,20 +12,13 @@
#include "VideoBackends/Software/XFMemLoader.h"
#include "VideoCommon/DataReader.h"
#include "VideoCommon/VertexLoader.h"
#include "VideoCommon/VertexLoader_Color.h"
#include "VideoCommon/VertexLoader_Normal.h"
#include "VideoCommon/VertexLoader_Position.h"
#include "VideoCommon/VertexLoader_TextCoord.h"
#include "VideoCommon/VertexManagerBase.h"
// Vertex loaders read these
extern int tcIndex;
extern int colIndex;
extern int colElements[2];
extern float posScale;
extern float tcScale[8];
SWVertexLoader::SWVertexLoader() :
m_VertexSize(0),
m_NumAttributeLoaders(0)

View File

@ -35,6 +35,7 @@
#include "VideoBackends/Software/VideoConfigDialog.h"
#endif // HAVE_WX
#include "VideoCommon/Fifo.h"
#include "VideoCommon/OnScreenDisplay.h"
#include "VideoCommon/PixelEngine.h"
#include "VideoCommon/XFMemory.h"