(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

@@ -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

View File

@@ -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,

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -13,6 +13,8 @@
#include "random_func.hpp"
#include "bitmath_func.hpp"
#include "../safeguards.h"
Randomizer _random, _interactive_random;
/**