(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:
@@ -11,6 +11,8 @@
|
||||
|
||||
#include "../stdafx.h"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/**
|
||||
* Function to exit with an error message after malloc() or calloc() have failed
|
||||
* @param size number of bytes we tried to allocate
|
||||
|
@@ -12,6 +12,8 @@
|
||||
#include "../stdafx.h"
|
||||
#include "bitmath_func.hpp"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
const uint8 _ffb_64[64] = {
|
||||
0, 0, 1, 0, 2, 0, 1, 0,
|
||||
3, 0, 1, 0, 2, 0, 1, 0,
|
||||
|
@@ -13,6 +13,8 @@
|
||||
#include "geometry_func.hpp"
|
||||
#include "math_func.hpp"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/**
|
||||
* Compute bounding box of both dimensions.
|
||||
* @param d1 First dimension.
|
||||
|
@@ -12,6 +12,8 @@
|
||||
#include "../stdafx.h"
|
||||
#include "math_func.hpp"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/**
|
||||
* Compute least common multiple (lcm) of arguments \a a and \a b, the smallest
|
||||
* integer value that is a multiple of both \a a and \a b.
|
||||
|
@@ -12,6 +12,8 @@
|
||||
#include "../stdafx.h"
|
||||
#include "pool_type.hpp"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/**
|
||||
* Destructor removes this object from the pool vector and
|
||||
* deletes the vector itself if this was the last item removed.
|
||||
|
@@ -13,6 +13,8 @@
|
||||
#include "random_func.hpp"
|
||||
#include "bitmath_func.hpp"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
Randomizer _random, _interactive_random;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user