(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values

This commit is contained in:
rubidium
2014-04-23 20:13:33 +00:00
parent dd84952d15
commit 2be4215f43
402 changed files with 873 additions and 1 deletions

View File

@@ -15,6 +15,8 @@
#include "../table/sprites.h"
#include "../safeguards.h"
/** Instantiation of the 32bpp with animation blitter factory. */
static FBlitter_32bppAnim iFBlitter_32bppAnim;

View File

@@ -17,6 +17,8 @@
#include "32bpp_anim_sse4.hpp"
#include "32bpp_sse_func.hpp"
#include "../safeguards.h"
/** Instantiation of the SSE4 32bpp blitter factory. */
static FBlitter_32bppSSE4_Anim iFBlitter_32bppSSE4_Anim;

View File

@@ -12,6 +12,8 @@
#include "../stdafx.h"
#include "32bpp_base.hpp"
#include "../safeguards.h"
void *Blitter_32bppBase::MoveTo(void *video, int x, int y)
{
return (uint32 *)video + x + y * _screen.pitch;

View File

@@ -14,6 +14,8 @@
#include "../settings_type.h"
#include "32bpp_optimized.hpp"
#include "../safeguards.h"
/** Instantiation of the optimized 32bpp blitter factory. */
static FBlitter_32bppOptimized iFBlitter_32bppOptimized;

View File

@@ -15,6 +15,8 @@
#include "../table/sprites.h"
#include "../safeguards.h"
/** Instantiation of the simple 32bpp blitter factory. */
static FBlitter_32bppSimple iFBlitter_32bppSimple;

View File

@@ -17,6 +17,8 @@
#include "32bpp_sse2.hpp"
#include "32bpp_sse_func.hpp"
#include "../safeguards.h"
/** Instantiation of the SSE2 32bpp blitter factory. */
static FBlitter_32bppSSE2 iFBlitter_32bppSSE2;

View File

@@ -17,6 +17,8 @@
#include "32bpp_sse4.hpp"
#include "32bpp_sse_func.hpp"
#include "../safeguards.h"
/** Instantiation of the SSE4 32bpp blitter factory. */
static FBlitter_32bppSSE4 iFBlitter_32bppSSE4;

View File

@@ -17,6 +17,8 @@
#include "32bpp_ssse3.hpp"
#include "32bpp_sse_func.hpp"
#include "../safeguards.h"
/** Instantiation of the SSSE3 32bpp blitter factory. */
static FBlitter_32bppSSSE3 iFBlitter_32bppSSSE3;

View File

@@ -13,6 +13,8 @@
#include "../gfx_func.h"
#include "8bpp_base.hpp"
#include "../safeguards.h"
void Blitter_8bppBase::DrawColourMappingRect(void *dst, int width, int height, PaletteID pal)
{
const uint8 *ctab = GetNonSprite(pal, ST_RECOLOUR) + 1;

View File

@@ -15,6 +15,8 @@
#include "../core/math_func.hpp"
#include "8bpp_optimized.hpp"
#include "../safeguards.h"
/** Instantiation of the 8bpp optimised blitter factory. */
static FBlitter_8bppOptimized iFBlitter_8bppOptimized;

View File

@@ -13,6 +13,8 @@
#include "../zoom_func.h"
#include "8bpp_simple.hpp"
#include "../safeguards.h"
/** Instantiation of the simple 8bpp blitter factory. */
static FBlitter_8bppSimple iFBlitter_8bppSimple;

View File

@@ -13,6 +13,8 @@
#include "base.hpp"
#include "../core/math_func.hpp"
#include "../safeguards.h"
void Blitter::DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 colour, int width, int dash)
{
int dy;

View File

@@ -12,6 +12,8 @@
#include "../stdafx.h"
#include "null.hpp"
#include "../safeguards.h"
/** Instantiation of the null blitter factory. */
static FBlitter_Null iFBlitter_Null;