summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-05-06 04:06:12 -0300
committerGravatar Yuri Kunde Schlesner2015-05-07 15:45:22 -0300
commite1fbac3ca13d37d2625c11d30cfdece4327b446b (patch)
treeda5daf1999660dbc7e75290627051dd8534131c8 /src/common
parentCommon: Move alignment macros to common_funcs.h (diff)
downloadyuzu-e1fbac3ca13d37d2625c11d30cfdece4327b446b.tar.gz
yuzu-e1fbac3ca13d37d2625c11d30cfdece4327b446b.tar.xz
yuzu-e1fbac3ca13d37d2625c11d30cfdece4327b446b.zip
Common: Remove common.h
Diffstat (limited to 'src/common')
-rw-r--r--src/common/CMakeLists.txt1
-rw-r--r--src/common/bit_field.h2
-rw-r--r--src/common/break_points.cpp1
-rw-r--r--src/common/break_points.h2
-rw-r--r--src/common/chunk_file.h3
-rw-r--r--src/common/common.h21
-rw-r--r--src/common/common_paths.h3
-rw-r--r--src/common/concurrent_ring_buffer.h2
-rw-r--r--src/common/emu_window.h6
-rw-r--r--src/common/file_util.cpp6
-rw-r--r--src/common/file_util.h2
-rw-r--r--src/common/hash.cpp1
-rw-r--r--src/common/hash.h2
-rw-r--r--src/common/linear_disk_cache.h2
-rw-r--r--src/common/logging/text_formatter.cpp1
-rw-r--r--src/common/math_util.cpp6
-rw-r--r--src/common/math_util.h2
-rw-r--r--src/common/mem_arena.cpp6
-rw-r--r--src/common/mem_arena.h2
-rw-r--r--src/common/memory_util.cpp3
-rw-r--r--src/common/misc.cpp4
-rw-r--r--src/common/string_util.cpp4
-rw-r--r--src/common/string_util.h2
-rw-r--r--src/common/symbols.h4
-rw-r--r--src/common/thread.h1
-rw-r--r--src/common/thread_queue_list.h2
-rw-r--r--src/common/thunk.h2
-rw-r--r--src/common/timer.cpp4
-rw-r--r--src/common/timer.h2
29 files changed, 43 insertions, 56 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index daa2d59de..9a9f1a46b 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -27,7 +27,6 @@ set(HEADERS
27 bit_field.h 27 bit_field.h
28 break_points.h 28 break_points.h
29 chunk_file.h 29 chunk_file.h
30 common.h
31 common_funcs.h 30 common_funcs.h
32 common_paths.h 31 common_paths.h
33 common_types.h 32 common_types.h
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index 8eab054b8..1f3ecf844 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -35,7 +35,7 @@
35#include <limits> 35#include <limits>
36#include <type_traits> 36#include <type_traits>
37 37
38#include "common/common.h" 38#include "common/common_funcs.h"
39 39
40/* 40/*
41 * Abstract bitfield class 41 * Abstract bitfield class
diff --git a/src/common/break_points.cpp b/src/common/break_points.cpp
index 15055bd4e..023a485a4 100644
--- a/src/common/break_points.cpp
+++ b/src/common/break_points.cpp
@@ -2,7 +2,6 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/common.h"
6#include "common/debug_interface.h" 5#include "common/debug_interface.h"
7#include "common/break_points.h" 6#include "common/break_points.h"
8#include "common/logging/log.h" 7#include "common/logging/log.h"
diff --git a/src/common/break_points.h b/src/common/break_points.h
index 4b26cf90d..f0a55e7b1 100644
--- a/src/common/break_points.h
+++ b/src/common/break_points.h
@@ -7,7 +7,7 @@
7#include <vector> 7#include <vector>
8#include <string> 8#include <string>
9 9
10#include "common/common.h" 10#include "common/common_types.h"
11 11
12class DebugInterface; 12class DebugInterface;
13 13
diff --git a/src/common/chunk_file.h b/src/common/chunk_file.h
index 3f97d56bf..dcd80525e 100644
--- a/src/common/chunk_file.h
+++ b/src/common/chunk_file.h
@@ -34,8 +34,9 @@
34#include <set> 34#include <set>
35#include <type_traits> 35#include <type_traits>
36 36
37#include "common/common.h" 37#include "common/common_types.h"
38#include "common/file_util.h" 38#include "common/file_util.h"
39#include "common/logging/log.h"
39 40
40template <class T> 41template <class T>
41struct LinkedListItem : public T 42struct LinkedListItem : public T
diff --git a/src/common/common.h b/src/common/common.h
deleted file mode 100644
index a9d3a6e6a..000000000
--- a/src/common/common.h
+++ /dev/null
@@ -1,21 +0,0 @@
1// Copyright 2013 Dolphin Emulator Project / 2014 Citra Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#pragma once
6
7// DO NOT EVER INCLUDE <windows.h> directly _or indirectly_ from this file
8// since it slows down the build a lot.
9
10#include <cstdlib>
11#include <cstdio>
12#include <cstring>
13
14#include "common/assert.h"
15#include "common/logging/log.h"
16#include "common/common_types.h"
17#include "common/common_funcs.h"
18#include "common/common_paths.h"
19#include "common/platform.h"
20
21#include "swap.h"
diff --git a/src/common/common_paths.h b/src/common/common_paths.h
index 440b06060..2903f2cf2 100644
--- a/src/common/common_paths.h
+++ b/src/common/common_paths.h
@@ -4,9 +4,6 @@
4 4
5#pragma once 5#pragma once
6 6
7// Make sure we pick up USER_DIR if set in config.h
8#include "common/common.h"
9
10// Directory separators, do we need this? 7// Directory separators, do we need this?
11#define DIR_SEP "/" 8#define DIR_SEP "/"
12#define DIR_SEP_CHR '/' 9#define DIR_SEP_CHR '/'
diff --git a/src/common/concurrent_ring_buffer.h b/src/common/concurrent_ring_buffer.h
index fc18e6c86..c5889513a 100644
--- a/src/common/concurrent_ring_buffer.h
+++ b/src/common/concurrent_ring_buffer.h
@@ -10,7 +10,7 @@
10#include <mutex> 10#include <mutex>
11#include <thread> 11#include <thread>
12 12
13#include "common/common.h" // for NonCopyable 13#include "common/common_types.h" // for NonCopyable
14 14
15namespace Common { 15namespace Common {
16 16
diff --git a/src/common/emu_window.h b/src/common/emu_window.h
index e0fc12a48..8eca6b5d5 100644
--- a/src/common/emu_window.h
+++ b/src/common/emu_window.h
@@ -4,11 +4,11 @@
4 4
5#pragma once 5#pragma once
6 6
7#include "common/common.h" 7#include "common/common_types.h"
8#include "common/scm_rev.h"
9#include "common/string_util.h"
10#include "common/key_map.h" 8#include "common/key_map.h"
11#include "common/math_util.h" 9#include "common/math_util.h"
10#include "common/scm_rev.h"
11#include "common/string_util.h"
12 12
13/** 13/**
14 * Abstraction class used to provide an interface between emulation code and the frontend 14 * Abstraction class used to provide an interface between emulation code and the frontend
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 946c4261a..7cdd1484f 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -2,9 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5 5#include "common/assert.h"
6#include "common/common.h" 6#include "common/common_funcs.h"
7#include "common/common_paths.h"
7#include "common/file_util.h" 8#include "common/file_util.h"
9#include "common/logging/log.h"
8 10
9#ifdef _WIN32 11#ifdef _WIN32
10 #include <windows.h> 12 #include <windows.h>
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 86aab2e3d..b65829291 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -11,7 +11,7 @@
11#include <string> 11#include <string>
12#include <vector> 12#include <vector>
13 13
14#include "common/common.h" 14#include "common/common_types.h"
15#include "common/string_util.h" 15#include "common/string_util.h"
16 16
17// User directory indices for GetUserPath 17// User directory indices for GetUserPath
diff --git a/src/common/hash.cpp b/src/common/hash.cpp
index 3e62beff4..b0b3613f6 100644
--- a/src/common/hash.cpp
+++ b/src/common/hash.cpp
@@ -4,6 +4,7 @@
4 4
5#include <algorithm> 5#include <algorithm>
6 6
7#include "common/common_funcs.h" // For rotl
7#include "common/hash.h" 8#include "common/hash.h"
8#include "common/platform.h" 9#include "common/platform.h"
9 10
diff --git a/src/common/hash.h b/src/common/hash.h
index 3ac42bc44..0afaf0e37 100644
--- a/src/common/hash.h
+++ b/src/common/hash.h
@@ -4,7 +4,7 @@
4 4
5#pragma once 5#pragma once
6 6
7#include "common/common.h" 7#include "common/common_types.h"
8 8
9u32 HashFletcher(const u8* data_u8, size_t length); // FAST. Length & 1 == 0. 9u32 HashFletcher(const u8* data_u8, size_t length); // FAST. Length & 1 == 0.
10u32 HashAdler32(const u8* data, size_t len); // Fairly accurate, slightly slower 10u32 HashAdler32(const u8* data, size_t len); // Fairly accurate, slightly slower
diff --git a/src/common/linear_disk_cache.h b/src/common/linear_disk_cache.h
index 74ce74aba..48529cf42 100644
--- a/src/common/linear_disk_cache.h
+++ b/src/common/linear_disk_cache.h
@@ -4,7 +4,7 @@
4 4
5#pragma once 5#pragma once
6 6
7#include "common/common.h" 7#include "common/common_types.h"
8#include <fstream> 8#include <fstream>
9 9
10// defined in Version.cpp 10// defined in Version.cpp
diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cpp
index 36c91c4f6..45be6d0a1 100644
--- a/src/common/logging/text_formatter.cpp
+++ b/src/common/logging/text_formatter.cpp
@@ -14,6 +14,7 @@
14#include "common/logging/log.h" 14#include "common/logging/log.h"
15#include "common/logging/text_formatter.h" 15#include "common/logging/text_formatter.h"
16 16
17#include "common/common_funcs.h"
17#include "common/string_util.h" 18#include "common/string_util.h"
18 19
19namespace Log { 20namespace Log {
diff --git a/src/common/math_util.cpp b/src/common/math_util.cpp
index a83592dd2..bcb70cae5 100644
--- a/src/common/math_util.cpp
+++ b/src/common/math_util.cpp
@@ -2,12 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <cstring>
6#include <numeric> // Necessary on OS X, but not Linux
5 7
6#include "common/common.h" 8#include "common/common_types.h"
7#include "common/math_util.h" 9#include "common/math_util.h"
8 10
9#include <numeric> // Necessary on OS X, but not Linux
10
11namespace MathUtil 11namespace MathUtil
12{ 12{
13 13
diff --git a/src/common/math_util.h b/src/common/math_util.h
index 43b0e0dc3..52f579cf7 100644
--- a/src/common/math_util.h
+++ b/src/common/math_util.h
@@ -4,7 +4,7 @@
4 4
5#pragma once 5#pragma once
6 6
7#include "common/common.h" 7#include "common/common_types.h"
8 8
9#include <algorithm> 9#include <algorithm>
10#include <type_traits> 10#include <type_traits>
diff --git a/src/common/mem_arena.cpp b/src/common/mem_arena.cpp
index 76c70701d..f233d4a3a 100644
--- a/src/common/mem_arena.cpp
+++ b/src/common/mem_arena.cpp
@@ -17,12 +17,16 @@
17 17
18#include <string> 18#include <string>
19 19
20#include "common/memory_util.h" 20#include "common/logging/log.h"
21#include "common/mem_arena.h" 21#include "common/mem_arena.h"
22#include "common/memory_util.h"
22#include "common/string_util.h" 23#include "common/string_util.h"
23 24
24#ifndef _WIN32 25#ifndef _WIN32
25#include <fcntl.h> 26#include <fcntl.h>
27#include <string.h>
28#include <unistd.h>
29
26#ifdef ANDROID 30#ifdef ANDROID
27#include <sys/ioctl.h> 31#include <sys/ioctl.h>
28#include <linux/ashmem.h> 32#include <linux/ashmem.h>
diff --git a/src/common/mem_arena.h b/src/common/mem_arena.h
index 3379d2529..d514fe58c 100644
--- a/src/common/mem_arena.h
+++ b/src/common/mem_arena.h
@@ -21,7 +21,7 @@
21#include <windows.h> 21#include <windows.h>
22#endif 22#endif
23 23
24#include "common/common.h" 24#include "common/common_types.h"
25 25
26// This class lets you create a block of anonymous RAM, and then arbitrarily map views into it. 26// This class lets you create a block of anonymous RAM, and then arbitrarily map views into it.
27// Multiple views can mirror the same section of the block, which makes it very convient for emulating 27// Multiple views can mirror the same section of the block, which makes it very convient for emulating
diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp
index 7e69d31cb..2087a1184 100644
--- a/src/common/memory_util.cpp
+++ b/src/common/memory_util.cpp
@@ -3,7 +3,8 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5 5
6#include "common/common.h" 6#include "common/common_funcs.h"
7#include "common/logging/log.h"
7#include "common/memory_util.h" 8#include "common/memory_util.h"
8#include "common/string_util.h" 9#include "common/string_util.h"
9 10
diff --git a/src/common/misc.cpp b/src/common/misc.cpp
index e33055d10..53cacf37c 100644
--- a/src/common/misc.cpp
+++ b/src/common/misc.cpp
@@ -2,10 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/common.h" 5#include "common/common_funcs.h"
6 6
7#ifdef _WIN32 7#ifdef _WIN32
8#include <windows.h> 8#include <windows.h>
9#else
10#include <string.h>
9#endif 11#endif
10 12
11// Neither Android nor OS X support TLS 13// Neither Android nor OS X support TLS
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index 3264dd51a..6563611fd 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -4,7 +4,9 @@
4 4
5#include <boost/range/algorithm.hpp> 5#include <boost/range/algorithm.hpp>
6 6
7#include "common/common.h" 7#include "common/common_funcs.h"
8#include "common/common_paths.h"
9#include "common/logging/log.h"
8#include "common/string_util.h" 10#include "common/string_util.h"
9 11
10#ifdef _MSC_VER 12#ifdef _MSC_VER
diff --git a/src/common/string_util.h b/src/common/string_util.h
index 74974263f..a60a84696 100644
--- a/src/common/string_util.h
+++ b/src/common/string_util.h
@@ -10,7 +10,7 @@
10#include <sstream> 10#include <sstream>
11#include <vector> 11#include <vector>
12 12
13#include "common/common.h" 13#include "common/common_types.h"
14 14
15namespace Common { 15namespace Common {
16 16
diff --git a/src/common/symbols.h b/src/common/symbols.h
index f76cb6b1e..6b62b011e 100644
--- a/src/common/symbols.h
+++ b/src/common/symbols.h
@@ -5,8 +5,10 @@
5#pragma once 5#pragma once
6 6
7#include <map> 7#include <map>
8#include <string>
9#include <utility>
8 10
9#include "common/common.h" 11#include "common/common_types.h"
10 12
11struct TSymbol 13struct TSymbol
12{ 14{
diff --git a/src/common/thread.h b/src/common/thread.h
index 5fdb6baeb..7bc419497 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -4,7 +4,6 @@
4 4
5#pragma once 5#pragma once
6 6
7// Don't include common.h here as it will break LogManager
8#include "common/common_types.h" 7#include "common/common_types.h"
9#include <cstdio> 8#include <cstdio>
10#include <cstring> 9#include <cstring>
diff --git a/src/common/thread_queue_list.h b/src/common/thread_queue_list.h
index 4f27fc899..12455d7c4 100644
--- a/src/common/thread_queue_list.h
+++ b/src/common/thread_queue_list.h
@@ -9,8 +9,6 @@
9 9
10#include <boost/range/algorithm_ext/erase.hpp> 10#include <boost/range/algorithm_ext/erase.hpp>
11 11
12#include "common/common.h"
13
14namespace Common { 12namespace Common {
15 13
16template<class T, unsigned int N> 14template<class T, unsigned int N>
diff --git a/src/common/thunk.h b/src/common/thunk.h
index 4fb7c98e1..533480056 100644
--- a/src/common/thunk.h
+++ b/src/common/thunk.h
@@ -6,7 +6,7 @@
6 6
7#include <map> 7#include <map>
8 8
9#include "common/common.h" 9#include "common/common_types.h"
10 10
11// This simple class creates a wrapper around a C/C++ function that saves all fp state 11// This simple class creates a wrapper around a C/C++ function that saves all fp state
12// before entering it, and restores it upon exit. This is required to be able to selectively 12// before entering it, and restores it upon exit. This is required to be able to selectively
diff --git a/src/common/timer.cpp b/src/common/timer.cpp
index a6682ea19..b99835ac7 100644
--- a/src/common/timer.cpp
+++ b/src/common/timer.cpp
@@ -12,9 +12,9 @@
12#include <sys/time.h> 12#include <sys/time.h>
13#endif 13#endif
14 14
15#include "common/common.h" 15#include "common/common_types.h"
16#include "common/timer.h"
17#include "common/string_util.h" 16#include "common/string_util.h"
17#include "common/timer.h"
18 18
19namespace Common 19namespace Common
20{ 20{
diff --git a/src/common/timer.h b/src/common/timer.h
index 4b44c33a0..b5f0f2585 100644
--- a/src/common/timer.h
+++ b/src/common/timer.h
@@ -4,7 +4,7 @@
4 4
5#pragma once 5#pragma once
6 6
7#include "common/common.h" 7#include "common/common_types.h"
8#include <string> 8#include <string>
9 9
10namespace Common 10namespace Common