(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 287ecd1582
commit 0463dbdc9e
402 changed files with 873 additions and 1 deletions

View File

@@ -27,6 +27,8 @@
#include "../../core/alloc_func.hpp"
#include "aystar.h"
#include "../../safeguards.h"
/**
* This looks in the hash whether a node exists in the closed list.
* @param node Node to search.

View File

@@ -19,6 +19,8 @@
#include "../follow_track.hpp"
#include "aystar.h"
#include "../../safeguards.h"
static const uint NPF_HASH_BITS = 12; ///< The size of the hash used in pathfinding. Just changing this value should be sufficient to change the hash size. Should be an even value.
/* Do no change below values */
static const uint NPF_HASH_SIZE = 1 << NPF_HASH_BITS;

View File

@@ -13,6 +13,8 @@
#include "../../core/alloc_func.hpp"
#include "queue.h"
#include "../../safeguards.h"
/*
* Binary Heap

View File

@@ -15,6 +15,8 @@
#include "../../ship.h"
#include "../../core/random_func.hpp"
#include "../../safeguards.h"
struct RememberData {
uint16 cur_length;
byte depth;

View File

@@ -19,6 +19,8 @@
#include "../../viewport_func.h"
#include "../../newgrf_station.h"
#include "../../safeguards.h"
#define DEBUG_YAPF_CACHE 0
#if DEBUG_YAPF_CACHE

View File

@@ -14,6 +14,8 @@
#include "yapf_node_road.hpp"
#include "../../roadstop_base.h"
#include "../../safeguards.h"
template <class Types>
class CYapfCostRoadT

View File

@@ -15,6 +15,8 @@
#include "yapf.hpp"
#include "yapf_node_ship.hpp"
#include "../../safeguards.h"
/** Node Follower module of YAPF for ships */
template <class Types>
class CYapfFollowShipT