cast: move types/casts to cast

This commit is contained in:
Danny Robson 2015-11-17 16:19:27 +11:00
parent 78e0455800
commit 424e6e8701
17 changed files with 19 additions and 19 deletions

View File

@ -33,6 +33,7 @@ UTIL_FILES = \
bezier.hpp \ bezier.hpp \
bitwise.cpp \ bitwise.cpp \
bitwise.hpp \ bitwise.hpp \
cast.hpp \
cmdopt.cpp \ cmdopt.cpp \
cmdopt.hpp \ cmdopt.hpp \
cmdopt.ipp \ cmdopt.ipp \
@ -297,7 +298,6 @@ UTIL_FILES = \
tuple.cpp \ tuple.cpp \
tuple.hpp \ tuple.hpp \
types/bits.hpp \ types/bits.hpp \
types/casts.hpp \
types/comparator.hpp \ types/comparator.hpp \
types/comparator.ipp \ types/comparator.ipp \
types.hpp \ types.hpp \

View File

@ -20,7 +20,7 @@
#include "./debug.hpp" #include "./debug.hpp"
#include "./exe.hpp" #include "./exe.hpp"
#include "./io.hpp" #include "./io.hpp"
#include "types/casts.hpp" #include "cast.hpp"
#include <sstream> #include <sstream>
#include <iomanip> #include <iomanip>

View File

@ -14,10 +14,10 @@
* Copyright 2011 Danny Robson <danny@nerdcruft.net> * Copyright 2011 Danny Robson <danny@nerdcruft.net>
*/ */
#ifndef __UTIL_TYPES_CASTS_HPP #ifndef __UTIL_CAST_HPP
#define __UTIL_TYPES_CASTS_HPP #define __UTIL_CAST_HPP
#include "../debug.hpp" #include "./debug.hpp"
#include <type_traits> #include <type_traits>
#include <limits> #include <limits>

View File

@ -22,7 +22,7 @@
#if defined(PLATFORM_LINUX) #if defined(PLATFORM_LINUX)
#include "except.hpp" #include "except.hpp"
#include "types/casts.hpp" #include "cast.hpp"
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -20,7 +20,7 @@
#include "debug.hpp" #include "debug.hpp"
#include "endian.hpp" #include "endian.hpp"
#include "types.hpp" #include "types.hpp"
#include "types/casts.hpp" #include "cast.hpp"
#include <algorithm> #include <algorithm>
#include <cassert> #include <cassert>

2
io.cpp
View File

@ -19,7 +19,7 @@
#include "debug.hpp" #include "debug.hpp"
#include "except.hpp" #include "except.hpp"
#include "platform.hpp" #include "platform.hpp"
#include "types/casts.hpp" #include "cast.hpp"
#include <cstdio> #include <cstdio>
#include <fcntl.h> #include <fcntl.h>

View File

@ -20,7 +20,7 @@
#include "ip.hpp" #include "ip.hpp"
#include "types/casts.hpp" #include "cast.hpp"
#include <stdexcept> #include <stdexcept>
#include <iostream> #include <iostream>

View File

@ -23,7 +23,7 @@
#include "debug.hpp" #include "debug.hpp"
#include "io.hpp" #include "io.hpp"
#include "maths.hpp" #include "maths.hpp"
#include "types/casts.hpp" #include "cast.hpp"
#include <algorithm> #include <algorithm>
#include <cstdlib> #include <cstdlib>

View File

@ -20,7 +20,7 @@
#include "../../except.hpp" #include "../../except.hpp"
#include "../../maths.hpp" #include "../../maths.hpp"
#include "../../pointer.hpp" #include "../../pointer.hpp"
#include "../../types/casts.hpp" #include "../../cast.hpp"
#include <sys/mman.h> #include <sys/mman.h>

View File

@ -17,7 +17,7 @@
#include "./system.hpp" #include "./system.hpp"
#include "../except.hpp" #include "../except.hpp"
#include "../types/casts.hpp" #include "../cast.hpp"
#include <unistd.h> #include <unistd.h>

View File

@ -17,7 +17,7 @@
#include "except.hpp" #include "except.hpp"
#include "../debug.hpp" #include "../debug.hpp"
#include "../types/casts.hpp" #include "../cast.hpp"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@ -18,7 +18,7 @@
#include "../debug.hpp" #include "../debug.hpp"
#include "../except.hpp" #include "../except.hpp"
#include "../types/casts.hpp" #include "../cast.hpp"
#include "../log.hpp" #include "../log.hpp"
#include "except.hpp" #include "except.hpp"

View File

@ -1,6 +1,6 @@
#include "./distance.hpp" #include "./distance.hpp"
#include "../../../extent.hpp" #include "../../../extent.hpp"
#include "../../../types/casts.hpp" #include "../../../cast.hpp"
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -18,7 +18,7 @@
#include "region.hpp" #include "region.hpp"
#include "debug.hpp" #include "debug.hpp"
#include "types/casts.hpp" #include "cast.hpp"
#include <cmath> #include <cmath>
#include <type_traits> #include <type_traits>

View File

@ -18,7 +18,7 @@
#include <cstring> #include <cstring>
#include "types/casts.hpp" #include "cast.hpp"
// TODO: Horribly inefficient, but God help you if you're relying on this // TODO: Horribly inefficient, but God help you if you're relying on this
// being efficient in the first place. // being efficient in the first place.

View File

@ -19,7 +19,7 @@
#include "debug.hpp" #include "debug.hpp"
#include "log.hpp" #include "log.hpp"
#include "platform.hpp" #include "platform.hpp"
#include "types/casts.hpp" #include "cast.hpp"
using namespace util; using namespace util;

View File

@ -16,7 +16,7 @@
#include "time.hpp" #include "time.hpp"
#include "types/casts.hpp" #include "cast.hpp"
#include <ctime> #include <ctime>