(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:
@@ -4,6 +4,8 @@
|
||||
#include "demands.h"
|
||||
#include <list>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
typedef std::list<NodeID> NodeList;
|
||||
|
||||
/**
|
||||
|
@@ -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.
|
||||
|
@@ -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)
|
||||
|
@@ -22,6 +22,8 @@
|
||||
|
||||
#include "table/strings.h"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/**
|
||||
* Colours for the various "load" states of links. Ordered from "unused" to
|
||||
* "overloaded".
|
||||
|
@@ -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)
|
||||
|
@@ -16,6 +16,8 @@
|
||||
#include "mcf.h"
|
||||
#include "flowmapper.h"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/**
|
||||
* Start the next job in the schedule.
|
||||
*/
|
||||
|
@@ -5,6 +5,8 @@
|
||||
#include "mcf.h"
|
||||
#include <set>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
typedef std::map<NodeID, Path *> PathViaMap;
|
||||
|
||||
/**
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user