(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

@@ -4,6 +4,8 @@
#include "demands.h"
#include <list>
#include "../safeguards.h"
typedef std::list<NodeID> NodeList;
/**

View File

@@ -12,6 +12,8 @@
#include "../stdafx.h"
#include "flowmapper.h"
#include "../safeguards.h"
/**
* Map the paths generated by the MCF solver into flows associated with nodes.
* @param component the link graph component to be used.

View File

@@ -13,6 +13,8 @@
#include "../core/pool_func.hpp"
#include "linkgraph.h"
#include "../safeguards.h"
/* Initialize the link-graph-pool */
LinkGraphPool _link_graph_pool("LinkGraph");
INSTANTIATE_POOL_METHODS(LinkGraph)

View File

@@ -22,6 +22,8 @@
#include "table/strings.h"
#include "../safeguards.h"
/**
* Colours for the various "load" states of links. Ordered from "unused" to
* "overloaded".

View File

@@ -15,6 +15,8 @@
#include "linkgraphjob.h"
#include "linkgraphschedule.h"
#include "../safeguards.h"
/* Initialize the link-graph-job-pool */
LinkGraphJobPool _link_graph_job_pool("LinkGraphJob");
INSTANTIATE_POOL_METHODS(LinkGraphJob)

View File

@@ -16,6 +16,8 @@
#include "mcf.h"
#include "flowmapper.h"
#include "../safeguards.h"
/**
* Start the next job in the schedule.
*/

View File

@@ -5,6 +5,8 @@
#include "mcf.h"
#include <set>
#include "../safeguards.h"
typedef std::map<NodeID, Path *> PathViaMap;
/**

View File

@@ -17,6 +17,8 @@
#include "refresh.h"
#include "linkgraph.h"
#include "../safeguards.h"
/**
* Refresh all links the given vehicle will visit.
* @param v Vehicle to refresh links for.