build: don't use './' as an include prefix

GCC produces ODR error when including paths of the form './foo' and
'foo' in the same binary. Rather than managing duplication we just
universally pick the absolute form over the relative form.
This commit is contained in:
Danny Robson 2017-11-22 16:49:37 +11:00
parent 4794e84c13
commit 34788756d2
102 changed files with 189 additions and 187 deletions

View File

@ -44,6 +44,6 @@ namespace cruft::util::sort {
soa (RandomIt key_first, RandomIt key_last, Comparator comp, Args ...values); soa (RandomIt key_first, RandomIt key_last, Comparator comp, Args ...values);
} }
#include "./sort.ipp" #include "sort.ipp"
#endif #endif

View File

@ -14,7 +14,7 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./affix.hpp" #include "affix.hpp"
using util::alloc::affix; using util::alloc::affix;

View File

@ -1 +1 @@
#include "./allocator.hpp" #include "allocator.hpp"

View File

@ -38,6 +38,6 @@ namespace util::alloc {
}; };
} }
#include "./allocator.ipp" #include "allocator.ipp"
#endif #endif

View File

@ -1 +1 @@
#include "./arena.hpp" #include "arena.hpp"

View File

@ -66,6 +66,6 @@ namespace util::alloc {
}; };
} }
#include "./arena.ipp" #include "arena.ipp"
#endif #endif

View File

@ -1 +1 @@
#include "./fallback.hpp" #include "fallback.hpp"

View File

@ -14,7 +14,7 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./linear.hpp" #include "linear.hpp"
#include "../pointer.hpp" #include "../pointer.hpp"
#include "../debug.hpp" #include "../debug.hpp"

View File

@ -14,7 +14,7 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./malloc.hpp" #include "malloc.hpp"
#include "../debug.hpp" #include "../debug.hpp"

View File

@ -15,7 +15,7 @@
*/ */
#include "./null.hpp" #include "null.hpp"
#include "../debug.hpp" #include "../debug.hpp"

View File

@ -14,7 +14,7 @@
* Copyright 2015-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2015-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./stack.hpp" #include "stack.hpp"
#include "../debug.hpp" #include "../debug.hpp"
#include "../pointer.hpp" #include "../pointer.hpp"

View File

@ -17,7 +17,7 @@
#ifndef __CRUFT_UTIL_ASCII_HPP #ifndef __CRUFT_UTIL_ASCII_HPP
#define __CRUFT_UTIL_ASCII_HPP #define __CRUFT_UTIL_ASCII_HPP
#include "./annotation.hpp" #include "annotation.hpp"
#include <cstdint> #include <cstdint>
#include <stdexcept> #include <stdexcept>

View File

@ -17,10 +17,10 @@
#include "backtrace.hpp" #include "backtrace.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include "./exe.hpp" #include "exe.hpp"
#include "./io.hpp" #include "io.hpp"
#include "./cast.hpp" #include "cast.hpp"
#include <sstream> #include <sstream>
#include <cstdio> #include <cstdio>

View File

@ -14,11 +14,11 @@
* Copyright 2016 Danny Robson <danny@nerdcruft.net> * Copyright 2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./backtrace.hpp" #include "backtrace.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include "./except.hpp" #include "except.hpp"
#include "./types.hpp" #include "types.hpp"
#include <windows.h> #include <windows.h>
#include <dbghelp.h> #include <dbghelp.h>

View File

@ -15,11 +15,11 @@
* 2012-2016, Danny Robson <danny@nerdcruft.net> * 2012-2016, Danny Robson <danny@nerdcruft.net>
*/ */
#include "./backtrace.hpp" #include "backtrace.hpp"
#include "./win32/handle.hpp" #include "win32/handle.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include "./except.hpp" #include "except.hpp"
#include <cstdlib> #include <cstdlib>
#include <windows.h> #include <windows.h>

View File

@ -14,12 +14,12 @@
* Copyright 2015-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2015-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./bezier.hpp" #include "bezier.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include "./polynomial.hpp" #include "polynomial.hpp"
#include "./stream.hpp" #include "stream.hpp"
#include "./coord/iostream.hpp" #include "coord/iostream.hpp"
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>

View File

@ -14,7 +14,7 @@
* Copyright 2015-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2015-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./bezier.hpp" #include "bezier.hpp"
#include <array> #include <array>
#include <iostream> #include <iostream>

View File

@ -14,10 +14,10 @@
* Copyright 2015-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2015-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./bezier.hpp" #include "bezier.hpp"
#include "./polynomial.hpp" #include "polynomial.hpp"
#include "./coord/iostream.hpp" #include "coord/iostream.hpp"
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -14,7 +14,7 @@
* Copyright 2015-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2015-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./bezier.hpp" #include "bezier.hpp"
#include "coord/iostream.hpp" #include "coord/iostream.hpp"

View File

@ -17,7 +17,7 @@
#ifndef __UTIL_CAST_HPP #ifndef __UTIL_CAST_HPP
#define __UTIL_CAST_HPP #define __UTIL_CAST_HPP
#include "./debug.hpp" #include "debug.hpp"
#include <type_traits> #include <type_traits>
#include <limits> #include <limits>

View File

@ -14,10 +14,10 @@
* Copyright 2013-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2013-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./cmdopt.hpp" #include "cmdopt.hpp"
#include "./cast.hpp" #include "cast.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include <cstring> #include <cstring>
#include <iostream> #include <iostream>

View File

@ -23,8 +23,8 @@
#include <iterator> #include <iterator>
#include <sstream> #include <sstream>
#include "./introspection.hpp" #include "introspection.hpp"
#include "./iterator.hpp" #include "iterator.hpp"
namespace util::cmdopt { namespace util::cmdopt {
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////

View File

@ -14,12 +14,12 @@
* Copyright 2010-2017 Danny Robson <danny@nerdcruft.net> * Copyright 2010-2017 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./colour.hpp" #include "colour.hpp"
#include "./ascii.hpp" #include "ascii.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include "./log.hpp" #include "log.hpp"
#include "./range.hpp" #include "range.hpp"
#include <array> #include <array>
#include <map> #include <map>

View File

@ -11,13 +11,13 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
* *
* Copyright 2012-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2012-2017 Danny Robson <danny@nerdcruft.net>
*/ */
#ifndef __UTIL_COORDS_OPS #ifndef __UTIL_COORDS_OPS
#define __UTIL_COORDS_OPS #define __UTIL_COORDS_OPS
#include "./fwd.hpp" #include "fwd.hpp"
#include "../debug.hpp" #include "../debug.hpp"
#include "../maths.hpp" #include "../maths.hpp"

View File

@ -21,7 +21,7 @@
// Software Encryption - Fourth International Workshop, Haifa, Israel, // Software Encryption - Fourth International Workshop, Haifa, Israel,
// Springer-Verlag, pp. 69-82, 1997 // Springer-Verlag, pp. 69-82, 1997
#include "./ice.hpp" #include "ice.hpp"
#include "../endian.hpp" #include "../endian.hpp"
#include "../debug.hpp" #include "../debug.hpp"

View File

@ -391,14 +391,14 @@ namespace util::debug {
} }
#include "./debug.ipp" #include "debug.ipp"
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// XXX: maths needs to be included so that CHECK_EQ/NEQ can call almost_equal, // XXX: maths needs to be included so that CHECK_EQ/NEQ can call almost_equal,
// but maths.hpp might be using CHECK_ macros so we must include maths.hpp // but maths.hpp might be using CHECK_ macros so we must include maths.hpp
// after we define the CHECK_ macros so the preprocessor can resolve them. // after we define the CHECK_ macros so the preprocessor can resolve them.
#include "./maths.hpp" #include "maths.hpp"
#endif // __DEBUG_HPP #endif // __DEBUG_HPP

View File

@ -20,7 +20,7 @@
#define __UTIL_DEBUG_IPP #define __UTIL_DEBUG_IPP
#include "./format.hpp" #include "format.hpp"
#include <limits> #include <limits>

View File

@ -15,16 +15,16 @@
* 2011-2016, Danny Robson <danny@nerdcruft.net> * 2011-2016, Danny Robson <danny@nerdcruft.net>
*/ */
#include "./debug.hpp" #include "debug.hpp"
#include "./log.hpp" #include "log.hpp"
#include "platform.hpp"
#include <unistd.h> #include <unistd.h>
#include <sys/ptrace.h> #include <sys/ptrace.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <signal.h> #include <signal.h>
#include "./platform.hpp"
#if defined(PLATFORM_FREEBSD) #if defined(PLATFORM_FREEBSD)
#define PTRACE_ATTACH PT_ATTACH #define PTRACE_ATTACH PT_ATTACH

View File

@ -14,11 +14,11 @@
* Copyright 2016 Danny Robson <danny@nerdcruft.net> * Copyright 2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./debug.hpp" #include "debug.hpp"
#include "./except.hpp" #include "except.hpp"
#include "./log.hpp" #include "log.hpp"
#include "./except.hpp" #include "except.hpp"
#include <windows.h> #include <windows.h>
#include <iostream> #include <iostream>

View File

@ -14,10 +14,10 @@
* Copyright 2010 Danny Robson <danny@nerdcruft.net> * Copyright 2010 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./except.hpp" #include "except.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include "./platform.hpp" #include "platform.hpp"
#include <cstring> #include <cstring>
#include <cerrno> #include <cerrno>

View File

@ -14,10 +14,10 @@
* Copyright 2010-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2010-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./exe.hpp" #include "exe.hpp"
#include "./except.hpp" #include "except.hpp"
#include "./cast.hpp" #include "cast.hpp"
#include <vector> #include <vector>
#include <experimental/filesystem> #include <experimental/filesystem>

View File

@ -14,7 +14,7 @@
* Copyright 2010-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2010-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./exe.hpp" #include "exe.hpp"
#include "except.hpp" #include "except.hpp"

View File

@ -14,10 +14,10 @@
* Copyright 2010-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2010-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./extent.hpp" #include "extent.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include "./maths.hpp" #include "maths.hpp"
#include <algorithm> #include <algorithm>
#include <numeric> #include <numeric>

View File

@ -17,9 +17,9 @@
#ifndef __UTIL_FIXED_HPP #ifndef __UTIL_FIXED_HPP
#define __UTIL_FIXED_HPP #define __UTIL_FIXED_HPP
#include "./types/bits.hpp" #include "types/bits.hpp"
#include "./maths.hpp" #include "maths.hpp"
#include "./endian.hpp" #include "endian.hpp"
#include <ostream> #include <ostream>

View File

@ -1 +1 @@
#include "./filesystem.hpp" #include "filesystem.hpp"

View File

@ -14,7 +14,7 @@
* Copyright 2016 Danny Robson <danny@nerdcruft.net> * Copyright 2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./filesystem.hpp" #include "filesystem.hpp"
#include "../../except.hpp" #include "../../except.hpp"

View File

@ -14,9 +14,9 @@
* Copyright 2015-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2015-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./ascii.hpp" #include "ascii.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include "./maths.hpp" #include "maths.hpp"
#include <cstring> #include <cstring>
#include <cstddef> #include <cstddef>

View File

@ -15,9 +15,9 @@
*/ */
#include "./aabb.hpp" #include "aabb.hpp"
#include "./iostream.hpp" #include "iostream.hpp"
#include "../coord/iostream.hpp" #include "../coord/iostream.hpp"
#include "../debug.hpp" #include "../debug.hpp"

View File

@ -14,9 +14,9 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./iostream.hpp" #include "iostream.hpp"
#include "./sphere.hpp" #include "sphere.hpp"
#include "../coord/iostream.hpp" #include "../coord/iostream.hpp"

View File

@ -17,7 +17,7 @@
#ifndef __UTIL_GEOM_IOSTREAM_HPP #ifndef __UTIL_GEOM_IOSTREAM_HPP
#define __UTIL_GEOM_IOSTREAM_HPP #define __UTIL_GEOM_IOSTREAM_HPP
#include "./fwd.hpp" #include "fwd.hpp"
#include <ostream> #include <ostream>

View File

@ -14,10 +14,10 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./ray.hpp" #include "ray.hpp"
#include "./iostream.hpp" #include "iostream.hpp"
#include "./ops.hpp" #include "ops.hpp"
#include "../coord/iostream.hpp" #include "../coord/iostream.hpp"
#include "../debug.hpp" #include "../debug.hpp"

View File

@ -14,9 +14,9 @@
* Copyright 2010-2014 Danny Robson <danny@nerdcruft.net> * Copyright 2010-2014 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./adler.hpp" #include "adler.hpp"
#include "./fletcher.hpp" #include "fletcher.hpp"
#include "../debug.hpp" #include "../debug.hpp"
static constexpr unsigned MODULUS = 65521; static constexpr unsigned MODULUS = 65521;

View File

@ -17,7 +17,7 @@
#ifndef __UTIL_HASH_ADLER_HPP #ifndef __UTIL_HASH_ADLER_HPP
#define __UTIL_HASH_ADLER_HPP #define __UTIL_HASH_ADLER_HPP
#include "./fletcher.hpp" #include "fletcher.hpp"
#include <cstdint> #include <cstdint>

View File

@ -14,7 +14,7 @@
* Copyright 2011 Danny Robson <danny@nerdcruft.net> * Copyright 2011 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./crc.hpp" #include "crc.hpp"
#include "../bitwise.hpp" #include "../bitwise.hpp"
#include "../debug.hpp" #include "../debug.hpp"

View File

@ -15,7 +15,7 @@
*/ */
#include "./fletcher.hpp" #include "fletcher.hpp"
#include "../debug.hpp" #include "../debug.hpp"

View File

@ -21,9 +21,9 @@
// directly, and are unlikely to change given their inherent // directly, and are unlikely to change given their inherent
// lightweight nature. // lightweight nature.
#include "./fasthash.hpp" #include "fasthash.hpp"
#include "./fnv1a.hpp" #include "fnv1a.hpp"
#include "./murmur.hpp" #include "murmur.hpp"
// Forward declerations of class based hashes // Forward declerations of class based hashes

View File

@ -1,4 +1,4 @@
#include "./keccak.hpp" #include "keccak.hpp"
#include "../endian.hpp" #include "../endian.hpp"
#include "../maths.hpp" #include "../maths.hpp"

View File

@ -17,8 +17,8 @@
#ifndef __UTIL_HASH_MURMUR_HPP #ifndef __UTIL_HASH_MURMUR_HPP
#define __UTIL_HASH_MURMUR_HPP #define __UTIL_HASH_MURMUR_HPP
#include "./murmur/murmur1.hpp" #include "murmur/murmur1.hpp"
#include "./murmur/murmur2.hpp" #include "murmur/murmur2.hpp"
#include "./murmur/murmur3.hpp" #include "murmur/murmur3.hpp"
#endif #endif

View File

@ -31,7 +31,7 @@ namespace util::hash::murmur2 {
uint64_t hash_64 (const void *restrict data, size_t len, uint64_t seed); uint64_t hash_64 (const void *restrict data, size_t len, uint64_t seed);
} }
#include "./murmur2.ipp" #include "murmur2.ipp"
#endif #endif

View File

@ -15,7 +15,7 @@
* 2014, Danny Robson <danny@nerdcruft.net> * 2014, Danny Robson <danny@nerdcruft.net>
*/ */
#include "./ripemd.hpp" #include "ripemd.hpp"
#include "../debug.hpp" #include "../debug.hpp"
#include "../bitwise.hpp" #include "../bitwise.hpp"

View File

@ -14,7 +14,7 @@
* Copyright 2013 Danny Robson <danny@nerdcruft.net> * Copyright 2013 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./sha1.hpp" #include "sha1.hpp"
#include "../bitwise.hpp" #include "../bitwise.hpp"
#include "../debug.hpp" #include "../debug.hpp"

View File

@ -14,4 +14,4 @@
* Copyright 2016, Danny Robson <danny@nerdcruft.net> * Copyright 2016, Danny Robson <danny@nerdcruft.net>
*/ */
#include "./simple.hpp" #include "simple.hpp"

View File

@ -14,11 +14,11 @@
* Copyright 2016 Danny Robson <danny@nerdcruft.net> * Copyright 2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./xxhash.hpp" #include "xxhash.hpp"
#include "./debug.hpp" #include "../bitwise.hpp"
#include "./bitwise.hpp" #include "../debug.hpp"
#include "./endian.hpp" #include "../endian.hpp"
using util::hash::xxhash; using util::hash::xxhash;

View File

@ -17,8 +17,8 @@
#ifndef __UTIL_INTROSPECTION_HPP #ifndef __UTIL_INTROSPECTION_HPP
#define __UTIL_INTROSPECTION_HPP #define __UTIL_INTROSPECTION_HPP
#include "./preprocessor.hpp" #include "preprocessor.hpp"
#include "./variadic.hpp" #include "variadic.hpp"
#include <array> #include <array>
#include <cstddef> #include <cstddef>

6
io.hpp
View File

@ -116,11 +116,11 @@ namespace util {
} }
#ifdef PLATFORM_WIN32 #ifdef PLATFORM_WIN32
#include "./io_win32.hpp" #include "io_win32.hpp"
#else #else
#include "./io_posix.hpp" #include "io_posix.hpp"
#endif #endif
#include "./io.ipp" #include "io.ipp"
#endif #endif

View File

@ -16,10 +16,10 @@
#include "io.hpp" #include "io.hpp"
#include "cast.hpp"
#include "debug.hpp" #include "debug.hpp"
#include "except.hpp" #include "except.hpp"
#include "posix/fd.hpp" #include "posix/fd.hpp"
#include "./cast.hpp"
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -20,7 +20,7 @@
#define __UTIL_IO_POSIX_IPP #define __UTIL_IO_POSIX_IPP
#include "./pointer.hpp" #include "pointer.hpp"
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -14,10 +14,10 @@
* Copyright 2014 Danny Robson <danny@nerdcruft.net> * Copyright 2014 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./io_win32.hpp" #include "io_win32.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include "./except.hpp" #include "except.hpp"
#include <windows.h> #include <windows.h>

View File

@ -17,9 +17,9 @@
#ifndef __UTIL_IO_WIN32_HPP #ifndef __UTIL_IO_WIN32_HPP
#define __UTIL_IO_WIN32_HPP #define __UTIL_IO_WIN32_HPP
#include "./io.hpp" #include "io.hpp"
#include "./win32/handle.hpp" #include "win32/handle.hpp"
#include "./view.hpp" #include "view.hpp"
#include <cstdint> #include <cstdint>
#include <experimental/filesystem> #include <experimental/filesystem>

View File

@ -14,10 +14,10 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./schema.hpp" #include "schema.hpp"
#include "./tree.hpp" #include "tree.hpp"
#include "./except.hpp" #include "except.hpp"
#include "../io.hpp" #include "../io.hpp"
#include "../maths.hpp" #include "../maths.hpp"

View File

@ -17,7 +17,7 @@
#ifndef __UTIL_JSON_SCHEMA_HPP #ifndef __UTIL_JSON_SCHEMA_HPP
#define __UTIL_JSON_SCHEMA_HPP #define __UTIL_JSON_SCHEMA_HPP
#include "./fwd.hpp" #include "fwd.hpp"
#include <experimental/filesystem> #include <experimental/filesystem>

View File

@ -15,10 +15,10 @@
*/ */
#include "./tree.hpp" #include "tree.hpp"
#include "./except.hpp" #include "except.hpp"
#include "./flat.hpp" #include "flat.hpp"
#include "../debug.hpp" #include "../debug.hpp"
#include "../io.hpp" #include "../io.hpp"

View File

@ -17,8 +17,8 @@
#ifndef __UTIL_JSON_TREE_HPP #ifndef __UTIL_JSON_TREE_HPP
#define __UTIL_JSON_TREE_HPP #define __UTIL_JSON_TREE_HPP
#include "./flat.hpp" #include "flat.hpp"
#include "./fwd.hpp" #include "fwd.hpp"
#include "../iterator.hpp" #include "../iterator.hpp"
#include "../view.hpp" #include "../view.hpp"

View File

@ -17,8 +17,8 @@
#ifndef __UTIL_LOG_HPP #ifndef __UTIL_LOG_HPP
#define __UTIL_LOG_HPP #define __UTIL_LOG_HPP
#include "./nocopy.hpp" #include "nocopy.hpp"
#include "./preprocessor.hpp" #include "preprocessor.hpp"
#include <ostream> #include <ostream>
#include <string> #include <string>

View File

@ -21,8 +21,8 @@
// it triggers a circular dependency; debug -> format -> maths -> debug // it triggers a circular dependency; debug -> format -> maths -> debug
// instead, just use cassert // instead, just use cassert
#include "./types/traits.hpp" #include "types/traits.hpp"
#include "./float.hpp" #include "float.hpp"
#include <algorithm> #include <algorithm>
#include <cassert> #include <cassert>

View File

@ -14,7 +14,7 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./matrix.hpp" #include "matrix.hpp"
using util::matrix; using util::matrix;

View File

@ -14,7 +14,7 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./circular.hpp" #include "circular.hpp"
#include "../system.hpp" #include "../system.hpp"
#include "../../debug.hpp" #include "../../debug.hpp"

View File

@ -14,7 +14,7 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./paged.hpp" #include "paged.hpp"
#include "../system.hpp" #include "../system.hpp"
#include "../../except.hpp" #include "../../except.hpp"

View File

@ -14,7 +14,7 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./deleter.hpp" #include "deleter.hpp"
using util::memory::owner_deleter; using util::memory::owner_deleter;

View File

@ -14,7 +14,7 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./system.hpp" #include "system.hpp"
#include "../except.hpp" #include "../except.hpp"
#include "../cast.hpp" #include "../cast.hpp"

View File

@ -14,9 +14,9 @@
* Copyright 2011-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2011-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./point.hpp" #include "point.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include <cstdlib> #include <cstdlib>

View File

@ -20,12 +20,12 @@
#define __UTIL_POOL_IPP #define __UTIL_POOL_IPP
#include "debug.hpp"
#include <cstdint> #include <cstdint>
#include <new> #include <new>
#include <string> #include <string>
#include "./debug.hpp"
namespace util { namespace util {
//------------------------------------------------------------------------- //-------------------------------------------------------------------------

View File

@ -14,7 +14,7 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./dir.hpp" #include "dir.hpp"
#include "../except.hpp" #include "../except.hpp"

View File

@ -48,6 +48,6 @@ namespace util::posix {
}; };
} }
#include "./dir.ipp" #include "dir.ipp"
#endif #endif

View File

@ -14,7 +14,7 @@
* Copyright 2016 Danny Robson <danny@nerdcruft.net> * Copyright 2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./fd.hpp" #include "fd.hpp"
#include "../except.hpp" #include "../except.hpp"

View File

@ -17,7 +17,7 @@
#ifndef __CRUFT_UTIL_POSIX_HPP #ifndef __CRUFT_UTIL_POSIX_HPP
#define __CRUFT_UTIL_POSIX_HPP #define __CRUFT_UTIL_POSIX_HPP
#include "./fd.hpp" #include "fd.hpp"
#include <sys/mman.h> #include <sys/mman.h>
#include <cstdint> #include <cstdint>

View File

@ -15,10 +15,10 @@
*/ */
#include "./quaternion.hpp" #include "quaternion.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include "./vector.hpp" #include "vector.hpp"
#include <cmath> #include <cmath>

View File

@ -126,6 +126,6 @@ namespace util {
operator<< (std::ostream&, quaternion<T>); operator<< (std::ostream&, quaternion<T>);
} }
#include "./quaternion.ipp" #include "quaternion.ipp"
#endif #endif

View File

@ -15,7 +15,7 @@
*/ */
#include "./mwc64x.hpp" #include "mwc64x.hpp"
#include "../debug.hpp" #include "../debug.hpp"

View File

@ -14,7 +14,7 @@
* Copyright 2015-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2015-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./xorshift.hpp" #include "xorshift.hpp"
#include "../debug.hpp" #include "../debug.hpp"

View File

@ -15,11 +15,11 @@
*/ */
#include "./region.hpp" #include "region.hpp"
#include "./debug.hpp" #include "debug.hpp"
#include "./coord/iostream.hpp" #include "coord/iostream.hpp"
#include <array> #include <array>

View File

@ -14,4 +14,4 @@
* Copyright 2017 Danny Robson <danny@nerdcruft.net> * Copyright 2017 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./sarray.hpp" #include "sarray.hpp"

View File

@ -17,7 +17,7 @@
#ifndef CRUFT_UTIL_SARRAY_HPP #ifndef CRUFT_UTIL_SARRAY_HPP
#define CRUFT_UTIL_SARRAY_HPP #define CRUFT_UTIL_SARRAY_HPP
#include "./iterator.hpp" #include "iterator.hpp"
#include <cstdlib> #include <cstdlib>
#include <stdexcept> #include <stdexcept>

View File

@ -14,7 +14,7 @@
* Copyright 2011-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2011-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./string.hpp" #include "string.hpp"
#include <cstring> #include <cstring>
#include <codecvt> #include <codecvt>

View File

@ -17,7 +17,7 @@
#ifndef __UTIL_STRING_HPP #ifndef __UTIL_STRING_HPP
#define __UTIL_STRING_HPP #define __UTIL_STRING_HPP
#include "./view.hpp" #include "view.hpp"
namespace util { namespace util {

View File

@ -14,7 +14,7 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./strongdef.hpp" #include "strongdef.hpp"
using util::strongdef; using util::strongdef;

View File

@ -14,9 +14,9 @@
* Copyright 2016-2017 Danny Robson <danny@nerdcruft.net> * Copyright 2016-2017 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./term.hpp" #include "term.hpp"
#include "./string.hpp" #include "string.hpp"
#include <experimental/filesystem> #include <experimental/filesystem>
#include <cstdlib> #include <cstdlib>

View File

@ -1,6 +1,6 @@
#include "./tap.hpp" #include "../tap.hpp"
#include "./exe.hpp" #include "../exe.hpp"
#include <iostream> #include <iostream>

View File

@ -1,7 +1,7 @@
#include "geom/aabb.hpp" #include "../../geom/aabb.hpp"
#include "geom/plane.hpp" #include "../../geom/plane.hpp"
#include "geom/ray.hpp" #include "../../geom/ray.hpp"
#include "tap.hpp" #include "../../tap.hpp"
using util::geom::ray2f; using util::geom::ray2f;
using util::geom::ray3f; using util::geom::ray3f;

View File

@ -1,6 +1,6 @@
#include "tap.hpp" #include "../tap.hpp"
#include "./iterator.hpp" #include "../iterator.hpp"
#include <vector> #include <vector>
#include <array> #include <array>

View File

@ -1,6 +1,6 @@
#include "pool.hpp" #include "../pool.hpp"
#include "tap.hpp" #include "../tap.hpp"
#include <set> #include <set>
#include <vector> #include <vector>

View File

@ -1,6 +1,6 @@
#include "tap.hpp" #include "../tap.hpp"
#include "stream.hpp" #include "../stream.hpp"
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -1,6 +1,6 @@
#include "tap.hpp" #include "../tap.hpp"
#include "./typeidx.hpp" #include "../typeidx.hpp"
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -14,9 +14,9 @@
* Copyright 2010-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2010-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./time.hpp" #include "time.hpp"
#include "./log.hpp" #include "log.hpp"
#include <chrono> #include <chrono>

View File

@ -17,11 +17,12 @@
#ifndef __UTIL_TIME_HPP #ifndef __UTIL_TIME_HPP
#define __UTIL_TIME_HPP #define __UTIL_TIME_HPP
#include "stats.hpp"
#include <chrono> #include <chrono>
#include <cstdint> #include <cstdint>
#include <string> #include <string>
#include "./stats.hpp"
namespace util { namespace util {
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
@ -89,6 +90,6 @@ namespace util {
}; };
} }
#include "./time.ipp" #include "time.ipp"
#endif // __UTIL_TIME_HPP #endif // __UTIL_TIME_HPP

View File

@ -14,9 +14,9 @@
* Copyright 2010-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2010-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./time.hpp" #include "time.hpp"
#include "./cast.hpp" #include "cast.hpp"
#include <ctime> #include <ctime>

View File

@ -14,7 +14,7 @@
* Copyright 2017 Danny Robson <danny@nerdcruft.net> * Copyright 2017 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./typeidx.hpp" #include "typeidx.hpp"
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -20,7 +20,7 @@
#define __UTIL_VECTOR_IPP #define __UTIL_VECTOR_IPP
#endif #endif
#include "./maths.hpp" #include "maths.hpp"
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -14,7 +14,7 @@
* Copyright 2016 Danny Robson <danny@nerdcruft.net> * Copyright 2016 Danny Robson <danny@nerdcruft.net>
*/ */
#include "./view.hpp" #include "view.hpp"
#include <iterator> #include <iterator>

View File

@ -18,7 +18,7 @@
#ifndef __UTIL_VIEW_HPP #ifndef __UTIL_VIEW_HPP
#define __UTIL_VIEW_HPP #define __UTIL_VIEW_HPP
#include "./types/traits.hpp" #include "types/traits.hpp"
#include <cstdlib> #include <cstdlib>
#include <ostream> #include <ostream>
@ -133,6 +133,6 @@ namespace util {
operator<< (std::ostream&, view<T>); operator<< (std::ostream&, view<T>);
} }
#include "./view.ipp" #include "view.ipp"
#endif #endif

Some files were not shown because too many files have changed in this diff Show More