Make core/ includes absolute, remove subfolders from include path

This allows more consistency in the manner we include core headers,
where previously there would be a mix of absolute, relative and
include path-dependent includes.
This commit is contained in:
Rémi Verschelde 2018-09-11 18:13:45 +02:00
parent cc71012266
commit 277b24dfb7
873 changed files with 2119 additions and 2027 deletions

View File

@ -224,7 +224,7 @@ Help(opts.GenerateHelpText(env_base)) # generate help
# add default include paths # add default include paths
env_base.Append(CPPPATH=['#core', '#core/math', '#editor', '#drivers', '#']) env_base.Append(CPPPATH=['#editor', '#drivers', '#'])
# configure ENV for platform # configure ENV for platform
env_base.platform_exporters = platform_exporters env_base.platform_exporters = platform_exporters

View File

@ -18,7 +18,7 @@ for x in env.global_defaults:
gd_inc += '#include "platform/' + x + '/globals/global_defaults.h"\n' gd_inc += '#include "platform/' + x + '/globals/global_defaults.h"\n'
gd_call += "\tregister_" + x + "_global_defaults();\n" gd_call += "\tregister_" + x + "_global_defaults();\n"
gd_cpp = '#include "project_settings.h"\n' gd_cpp = '#include "core/project_settings.h"\n'
gd_cpp += gd_inc gd_cpp += gd_inc
gd_cpp += "void ProjectSettings::register_global_defaults() {\n" + gd_call + "\n}\n" gd_cpp += "void ProjectSettings::register_global_defaults() {\n" + gd_call + "\n}\n"
@ -52,7 +52,7 @@ if ("SCRIPT_AES256_ENCRYPTION_KEY" in os.environ):
# NOTE: It is safe to generate this file here, since this is still executed serially # NOTE: It is safe to generate this file here, since this is still executed serially
with open("script_encryption_key.gen.cpp", "w") as f: with open("script_encryption_key.gen.cpp", "w") as f:
f.write("#include \"project_settings.h\"\nuint8_t script_encryption_key[32]={" + txt + "};\n") f.write("#include \"core/project_settings.h\"\nuint8_t script_encryption_key[32]={" + txt + "};\n")
# Add required thirdparty code. Header paths are hardcoded, we don't need to append # Add required thirdparty code. Header paths are hardcoded, we don't need to append

View File

@ -31,7 +31,8 @@
#ifndef ALLOCATORS_H #ifndef ALLOCATORS_H
#define ALLOCATORS_H #define ALLOCATORS_H
#include "os/memory.h" #include "core/os/memory.h"
template <int PREALLOC_COUNT = 64, int MAX_HANDS = 8> template <int PREALLOC_COUNT = 64, int MAX_HANDS = 8>
class BalloonAllocator { class BalloonAllocator {

View File

@ -30,10 +30,10 @@
#include "array.h" #include "array.h"
#include "hashfuncs.h" #include "core/hashfuncs.h"
#include "object.h" #include "core/object.h"
#include "variant.h" #include "core/variant.h"
#include "vector.h" #include "core/vector.h"
class ArrayPrivate { class ArrayPrivate {
public: public:

View File

@ -31,7 +31,8 @@
#ifndef ARRAY_H #ifndef ARRAY_H
#define ARRAY_H #define ARRAY_H
#include "typedefs.h" #include "core/typedefs.h"
class Variant; class Variant;
class ArrayPrivate; class ArrayPrivate;
class Object; class Object;

View File

@ -30,14 +30,14 @@
#include "core_bind.h" #include "core_bind.h"
#include "core/io/file_access_compressed.h"
#include "core/io/file_access_encrypted.h"
#include "core/io/json.h"
#include "core/io/marshalls.h"
#include "core/math/geometry.h"
#include "core/os/keyboard.h"
#include "core/os/os.h"
#include "core/project_settings.h" #include "core/project_settings.h"
#include "geometry.h"
#include "io/file_access_compressed.h"
#include "io/file_access_encrypted.h"
#include "io/json.h"
#include "io/marshalls.h"
#include "os/keyboard.h"
#include "os/os.h"
#include "thirdparty/misc/base64.h" #include "thirdparty/misc/base64.h"

View File

@ -31,15 +31,15 @@
#ifndef CORE_BIND_H #ifndef CORE_BIND_H
#define CORE_BIND_H #define CORE_BIND_H
#include "image.h" #include "core/image.h"
#include "io/compression.h" #include "core/io/compression.h"
#include "io/resource_loader.h" #include "core/io/resource_loader.h"
#include "io/resource_saver.h" #include "core/io/resource_saver.h"
#include "os/dir_access.h" #include "core/os/dir_access.h"
#include "os/file_access.h" #include "core/os/file_access.h"
#include "os/os.h" #include "core/os/os.h"
#include "os/semaphore.h" #include "core/os/semaphore.h"
#include "os/thread.h" #include "core/os/thread.h"
class _ResourceLoader : public Object { class _ResourceLoader : public Object {
GDCLASS(_ResourceLoader, Object); GDCLASS(_ResourceLoader, Object);

View File

@ -30,9 +30,9 @@
#include "class_db.h" #include "class_db.h"
#include "engine.h" #include "core/engine.h"
#include "os/mutex.h" #include "core/os/mutex.h"
#include "version.h" #include "core/version.h"
#define OBJTYPE_RLOCK RWLockRead _rw_lockr_(lock); #define OBJTYPE_RLOCK RWLockRead _rw_lockr_(lock);
#define OBJTYPE_WLOCK RWLockWrite _rw_lockw_(lock); #define OBJTYPE_WLOCK RWLockWrite _rw_lockw_(lock);

View File

@ -31,16 +31,16 @@
#ifndef CLASS_DB_H #ifndef CLASS_DB_H
#define CLASS_DB_H #define CLASS_DB_H
#include "method_bind.h" #include "core/method_bind.h"
#include "object.h" #include "core/object.h"
#include "print_string.h" #include "core/print_string.h"
/** /**
@author Juan Linietsky <reduzio@gmail.com> @author Juan Linietsky <reduzio@gmail.com>
*/ */
/** To bind more then 6 parameters include this: /** To bind more then 6 parameters include this:
* #include "method_bind_ext.gen.inc" * #include "core/method_bind_ext.gen.inc"
*/ */
#define DEFVAL(m_defval) (m_defval) #define DEFVAL(m_defval) (m_defval)

View File

@ -30,10 +30,10 @@
#include "color.h" #include "color.h"
#include "color_names.inc" #include "core/color_names.inc"
#include "map.h" #include "core/map.h"
#include "math_funcs.h" #include "core/math/math_funcs.h"
#include "print_string.h" #include "core/print_string.h"
uint32_t Color::to_argb32() const { uint32_t Color::to_argb32() const {

View File

@ -31,8 +31,8 @@
#ifndef COLOR_H #ifndef COLOR_H
#define COLOR_H #define COLOR_H
#include "math_funcs.h" #include "core/math/math_funcs.h"
#include "ustring.h" #include "core/ustring.h"
/** /**
@author Juan Linietsky <reduzio@gmail.com> @author Juan Linietsky <reduzio@gmail.com>
*/ */

View File

@ -1,5 +1,5 @@
// Names from https://en.wikipedia.org/wiki/List_of_colors (through https://raw.githubusercontent.com/SuperUserNameMan/color_to_name/616a7cddafefda91478b7bc26167de97fb5badb1/godot_version.gd), slightly edited and normalized // Names from https://en.wikipedia.org/wiki/List_of_colors (through https://raw.githubusercontent.com/SuperUserNameMan/color_to_name/616a7cddafefda91478b7bc26167de97fb5badb1/godot_version.gd), slightly edited and normalized
#include "map.h" #include "core/map.h"
static Map<String, Color> _named_colors; static Map<String, Color> _named_colors;
static void _populate_named_colors() { static void _populate_named_colors() {

View File

@ -30,7 +30,7 @@
#include "command_queue_mt.h" #include "command_queue_mt.h"
#include "os/os.h" #include "core/os/os.h"
void CommandQueueMT::lock() { void CommandQueueMT::lock() {

View File

@ -31,11 +31,11 @@
#ifndef COMMAND_QUEUE_MT_H #ifndef COMMAND_QUEUE_MT_H
#define COMMAND_QUEUE_MT_H #define COMMAND_QUEUE_MT_H
#include "os/memory.h" #include "core/os/memory.h"
#include "os/mutex.h" #include "core/os/mutex.h"
#include "os/semaphore.h" #include "core/os/semaphore.h"
#include "simple_type.h" #include "core/simple_type.h"
#include "typedefs.h" #include "core/typedefs.h"
/** /**
@author Juan Linietsky <reduzio@gmail.com> @author Juan Linietsky <reduzio@gmail.com>
*/ */

View File

@ -30,7 +30,7 @@
#include "compressed_translation.h" #include "compressed_translation.h"
#include "pair.h" #include "core/pair.h"
extern "C" { extern "C" {
#include "thirdparty/misc/smaz.h" #include "thirdparty/misc/smaz.h"

View File

@ -31,7 +31,7 @@
#ifndef COMPRESSED_TRANSLATION_H #ifndef COMPRESSED_TRANSLATION_H
#define COMPRESSED_TRANSLATION_H #define COMPRESSED_TRANSLATION_H
#include "translation.h" #include "core/translation.h"
class PHashTranslation : public Translation { class PHashTranslation : public Translation {

View File

@ -31,7 +31,7 @@
#ifndef CORE_STRING_NAMES_H #ifndef CORE_STRING_NAMES_H
#define CORE_STRING_NAMES_H #define CORE_STRING_NAMES_H
#include "string_db.h" #include "core/string_db.h"
class CoreStringNames { class CoreStringNames {

View File

@ -31,8 +31,8 @@
#ifndef COWDATA_H_ #ifndef COWDATA_H_
#define COWDATA_H_ #define COWDATA_H_
#include "os/memory.h" #include "core/os/memory.h"
#include "safe_refcount.h" #include "core/safe_refcount.h"
template <class T> template <class T>
class Vector; class Vector;

View File

@ -30,9 +30,9 @@
#include "dictionary.h" #include "dictionary.h"
#include "ordered_hash_map.h" #include "core/ordered_hash_map.h"
#include "safe_refcount.h" #include "core/safe_refcount.h"
#include "variant.h" #include "core/variant.h"
struct DictionaryPrivate { struct DictionaryPrivate {

View File

@ -31,9 +31,10 @@
#ifndef DICTIONARY_H #ifndef DICTIONARY_H
#define DICTIONARY_H #define DICTIONARY_H
#include "array.h" #include "core/array.h"
#include "list.h" #include "core/list.h"
#include "ustring.h" #include "core/ustring.h"
class Variant; class Variant;
struct DictionaryPrivate; struct DictionaryPrivate;

View File

@ -31,12 +31,12 @@
#ifndef DVECTOR_H #ifndef DVECTOR_H
#define DVECTOR_H #define DVECTOR_H
#include "os/copymem.h" #include "core/os/copymem.h"
#include "os/memory.h" #include "core/os/memory.h"
#include "os/rw_lock.h" #include "core/os/rw_lock.h"
#include "pool_allocator.h" #include "core/pool_allocator.h"
#include "safe_refcount.h" #include "core/safe_refcount.h"
#include "ustring.h" #include "core/ustring.h"
struct MemoryPool { struct MemoryPool {

View File

@ -30,11 +30,11 @@
#include "engine.h" #include "engine.h"
#include "authors.gen.h" #include "core/authors.gen.h"
#include "donors.gen.h" #include "core/donors.gen.h"
#include "license.gen.h" #include "core/license.gen.h"
#include "version.h" #include "core/version.h"
#include "version_hash.gen.h" #include "core/version_hash.gen.h"
void Engine::set_iterations_per_second(int p_ips) { void Engine::set_iterations_per_second(int p_ips) {

View File

@ -31,10 +31,10 @@
#ifndef ENGINE_H #ifndef ENGINE_H
#define ENGINE_H #define ENGINE_H
#include "list.h" #include "core/list.h"
#include "os/main_loop.h" #include "core/os/main_loop.h"
#include "ustring.h" #include "core/ustring.h"
#include "vector.h" #include "core/vector.h"
class Engine { class Engine {

View File

@ -30,7 +30,7 @@
#include "error_macros.h" #include "error_macros.h"
#include "io/logger.h" #include "core/io/logger.h"
#include "os/os.h" #include "os/os.h"
bool _err_error_exists = false; bool _err_error_exists = false;

View File

@ -31,7 +31,7 @@
#ifndef ERROR_MACROS_H #ifndef ERROR_MACROS_H
#define ERROR_MACROS_H #define ERROR_MACROS_H
#include "typedefs.h" #include "core/typedefs.h"
/** /**
* Error macros. Unlike exceptions and asserts, these macros try to maintain consistency and stability * Error macros. Unlike exceptions and asserts, these macros try to maintain consistency and stability
* inside the code. It is recommended to always return processable data, so in case of an error, the * inside the code. It is recommended to always return processable data, so in case of an error, the

View File

@ -31,7 +31,7 @@
#ifndef FUNC_REF_H #ifndef FUNC_REF_H
#define FUNC_REF_H #define FUNC_REF_H
#include "reference.h" #include "core/reference.h"
class FuncRef : public Reference { class FuncRef : public Reference {

View File

@ -30,10 +30,10 @@
#include "global_constants.h" #include "global_constants.h"
#include "object.h" #include "core/object.h"
#include "os/input_event.h" #include "core/os/input_event.h"
#include "os/keyboard.h" #include "core/os/keyboard.h"
#include "variant.h" #include "core/variant.h"
struct _GlobalConstant { struct _GlobalConstant {

View File

@ -31,7 +31,7 @@
#ifndef GLOBAL_CONSTANTS_H #ifndef GLOBAL_CONSTANTS_H
#define GLOBAL_CONSTANTS_H #define GLOBAL_CONSTANTS_H
#include "string_db.h" #include "core/string_db.h"
class GlobalConstants { class GlobalConstants {
public: public:

View File

@ -31,12 +31,12 @@
#ifndef HASH_MAP_H #ifndef HASH_MAP_H
#define HASH_MAP_H #define HASH_MAP_H
#include "error_macros.h" #include "core/error_macros.h"
#include "hashfuncs.h" #include "core/hashfuncs.h"
#include "list.h" #include "core/list.h"
#include "math_funcs.h" #include "core/math/math_funcs.h"
#include "os/memory.h" #include "core/os/memory.h"
#include "ustring.h" #include "core/ustring.h"
/** /**
* @class HashMap * @class HashMap

View File

@ -31,12 +31,12 @@
#ifndef HASHFUNCS_H #ifndef HASHFUNCS_H
#define HASHFUNCS_H #define HASHFUNCS_H
#include "math_defs.h" #include "core/math/math_defs.h"
#include "math_funcs.h" #include "core/math/math_funcs.h"
#include "node_path.h" #include "core/node_path.h"
#include "string_db.h" #include "core/string_db.h"
#include "typedefs.h" #include "core/typedefs.h"
#include "ustring.h" #include "core/ustring.h"
/** /**
* Hashing functions * Hashing functions

View File

@ -30,7 +30,7 @@
#ifdef TOOLS_ENABLED #ifdef TOOLS_ENABLED
#include "core/helper/math_fieldwise.h" #include "math_fieldwise.h"
#define SETUP_TYPE(m_type) \ #define SETUP_TYPE(m_type) \
m_type source = p_source; \ m_type source = p_source; \

View File

@ -30,15 +30,15 @@
#include "image.h" #include "image.h"
#include "core/hash_map.h"
#include "core/io/image_loader.h" #include "core/io/image_loader.h"
#include "core/io/resource_loader.h"
#include "core/math/math_funcs.h"
#include "core/os/copymem.h" #include "core/os/copymem.h"
#include "hash_map.h" #include "core/print_string.h"
#include "math_funcs.h"
#include "print_string.h"
#include "io/resource_loader.h"
#include "math_funcs.h"
#include "thirdparty/misc/hq2x.h" #include "thirdparty/misc/hq2x.h"
#include <stdio.h> #include <stdio.h>
const char *Image::format_names[Image::FORMAT_MAX] = { const char *Image::format_names[Image::FORMAT_MAX] = {

View File

@ -31,10 +31,10 @@
#ifndef IMAGE_H #ifndef IMAGE_H
#define IMAGE_H #define IMAGE_H
#include "color.h" #include "core/color.h"
#include "dvector.h" #include "core/dvector.h"
#include "rect2.h" #include "core/math/rect2.h"
#include "resource.h" #include "core/resource.h"
/** /**
* @author Juan Linietsky <reduzio@gmail.com> * @author Juan Linietsky <reduzio@gmail.com>

View File

@ -30,8 +30,8 @@
#include "input_map.h" #include "input_map.h"
#include "os/keyboard.h" #include "core/os/keyboard.h"
#include "project_settings.h" #include "core/project_settings.h"
InputMap *InputMap::singleton = NULL; InputMap *InputMap::singleton = NULL;

View File

@ -31,8 +31,8 @@
#ifndef INPUT_MAP_H #ifndef INPUT_MAP_H
#define INPUT_MAP_H #define INPUT_MAP_H
#include "object.h" #include "core/object.h"
#include "os/input_event.h" #include "core/os/input_event.h"
class InputMap : public Object { class InputMap : public Object {

View File

@ -29,9 +29,10 @@
/*************************************************************************/ /*************************************************************************/
#include "compression.h" #include "compression.h"
#include "os/copymem.h"
#include "project_settings.h" #include "core/io/zip_io.h"
#include "zip_io.h" #include "core/os/copymem.h"
#include "core/project_settings.h"
#include "thirdparty/misc/fastlz.h" #include "thirdparty/misc/fastlz.h"

View File

@ -31,7 +31,7 @@
#ifndef COMPRESSION_H #ifndef COMPRESSION_H
#define COMPRESSION_H #define COMPRESSION_H
#include "typedefs.h" #include "core/typedefs.h"
class Compression { class Compression {

View File

@ -29,9 +29,10 @@
/*************************************************************************/ /*************************************************************************/
#include "config_file.h" #include "config_file.h"
#include "os/file_access.h"
#include "os/keyboard.h" #include "core/os/file_access.h"
#include "variant_parser.h" #include "core/os/keyboard.h"
#include "core/variant_parser.h"
PoolStringArray ConfigFile::_get_sections() const { PoolStringArray ConfigFile::_get_sections() const {

View File

@ -32,7 +32,7 @@
#define CONFIG_FILE_H #define CONFIG_FILE_H
#include "core/ordered_hash_map.h" #include "core/ordered_hash_map.h"
#include "reference.h" #include "core/reference.h"
class ConfigFile : public Reference { class ConfigFile : public Reference {

View File

@ -30,9 +30,7 @@
#include "file_access_buffered.h" #include "file_access_buffered.h"
#include <string.h> #include "core/error_macros.h"
#include "error_macros.h"
Error FileAccessBuffered::set_error(Error p_error) const { Error FileAccessBuffered::set_error(Error p_error) const {

View File

@ -31,10 +31,9 @@
#ifndef FILE_ACCESS_BUFFERED_H #ifndef FILE_ACCESS_BUFFERED_H
#define FILE_ACCESS_BUFFERED_H #define FILE_ACCESS_BUFFERED_H
#include "os/file_access.h" #include "core/dvector.h"
#include "core/os/file_access.h"
#include "dvector.h" #include "core/ustring.h"
#include "ustring.h"
class FileAccessBuffered : public FileAccess { class FileAccessBuffered : public FileAccess {

View File

@ -29,7 +29,9 @@
/*************************************************************************/ /*************************************************************************/
#include "file_access_compressed.h" #include "file_access_compressed.h"
#include "print_string.h"
#include "core/print_string.h"
void FileAccessCompressed::configure(const String &p_magic, Compression::Mode p_mode, int p_block_size) { void FileAccessCompressed::configure(const String &p_magic, Compression::Mode p_mode, int p_block_size) {
magic = p_magic.ascii().get_data(); magic = p_magic.ascii().get_data();

View File

@ -31,8 +31,8 @@
#ifndef FILE_ACCESS_COMPRESSED_H #ifndef FILE_ACCESS_COMPRESSED_H
#define FILE_ACCESS_COMPRESSED_H #define FILE_ACCESS_COMPRESSED_H
#include "io/compression.h" #include "core/io/compression.h"
#include "os/file_access.h" #include "core/os/file_access.h"
class FileAccessCompressed : public FileAccess { class FileAccessCompressed : public FileAccess {

View File

@ -30,9 +30,9 @@
#include "file_access_encrypted.h" #include "file_access_encrypted.h"
#include "core/os/copymem.h"
#include "core/print_string.h"
#include "core/variant.h" #include "core/variant.h"
#include "os/copymem.h"
#include "print_string.h"
#include "thirdparty/misc/aes256.h" #include "thirdparty/misc/aes256.h"
#include "thirdparty/misc/md5.h" #include "thirdparty/misc/md5.h"

View File

@ -31,7 +31,7 @@
#ifndef FILE_ACCESS_ENCRYPTED_H #ifndef FILE_ACCESS_ENCRYPTED_H
#define FILE_ACCESS_ENCRYPTED_H #define FILE_ACCESS_ENCRYPTED_H
#include "os/file_access.h" #include "core/os/file_access.h"
class FileAccessEncrypted : public FileAccess { class FileAccessEncrypted : public FileAccess {
public: public:

View File

@ -30,10 +30,10 @@
#include "file_access_memory.h" #include "file_access_memory.h"
#include "map.h" #include "core/map.h"
#include "os/copymem.h" #include "core/os/copymem.h"
#include "os/dir_access.h" #include "core/os/dir_access.h"
#include "project_settings.h" #include "core/project_settings.h"
static Map<String, Vector<uint8_t> > *files = NULL; static Map<String, Vector<uint8_t> > *files = NULL;

View File

@ -31,7 +31,7 @@
#ifndef FILE_ACCESS_MEMORY_H #ifndef FILE_ACCESS_MEMORY_H
#define FILE_ACCESS_MEMORY_H #define FILE_ACCESS_MEMORY_H
#include "os/file_access.h" #include "core/os/file_access.h"
class FileAccessMemory : public FileAccess { class FileAccessMemory : public FileAccess {

View File

@ -29,10 +29,11 @@
/*************************************************************************/ /*************************************************************************/
#include "file_access_network.h" #include "file_access_network.h"
#include "io/ip.h"
#include "marshalls.h" #include "core/io/ip.h"
#include "os/os.h" #include "core/io/marshalls.h"
#include "project_settings.h" #include "core/os/os.h"
#include "core/project_settings.h"
//#define DEBUG_PRINT(m_p) print_line(m_p) //#define DEBUG_PRINT(m_p) print_line(m_p)
//#define DEBUG_TIME(m_what) printf("MS: %s - %lli\n",m_what,OS::get_singleton()->get_ticks_usec()); //#define DEBUG_TIME(m_what) printf("MS: %s - %lli\n",m_what,OS::get_singleton()->get_ticks_usec());

View File

@ -31,10 +31,10 @@
#ifndef FILE_ACCESS_NETWORK_H #ifndef FILE_ACCESS_NETWORK_H
#define FILE_ACCESS_NETWORK_H #define FILE_ACCESS_NETWORK_H
#include "io/stream_peer_tcp.h" #include "core/io/stream_peer_tcp.h"
#include "os/file_access.h" #include "core/os/file_access.h"
#include "os/semaphore.h" #include "core/os/semaphore.h"
#include "os/thread.h" #include "core/os/thread.h"
class FileAccessNetwork; class FileAccessNetwork;

View File

@ -29,7 +29,8 @@
/*************************************************************************/ /*************************************************************************/
#include "file_access_pack.h" #include "file_access_pack.h"
#include "version.h"
#include "core/version.h"
#include <stdio.h> #include <stdio.h>

View File

@ -31,11 +31,11 @@
#ifndef FILE_ACCESS_PACK_H #ifndef FILE_ACCESS_PACK_H
#define FILE_ACCESS_PACK_H #define FILE_ACCESS_PACK_H
#include "list.h" #include "core/list.h"
#include "map.h" #include "core/map.h"
#include "os/dir_access.h" #include "core/os/dir_access.h"
#include "os/file_access.h" #include "core/os/file_access.h"
#include "print_string.h" #include "core/print_string.h"
class PackSource; class PackSource;

View File

@ -34,7 +34,7 @@
#define FILE_ACCESS_ZIP_H #define FILE_ACCESS_ZIP_H
#include "core/io/file_access_pack.h" #include "core/io/file_access_pack.h"
#include "map.h" #include "core/map.h"
#include "thirdparty/minizip/unzip.h" #include "thirdparty/minizip/unzip.h"

View File

@ -29,8 +29,9 @@
/*************************************************************************/ /*************************************************************************/
#include "http_client.h" #include "http_client.h"
#include "io/stream_peer_ssl.h"
#include "version.h" #include "core/io/stream_peer_ssl.h"
#include "core/version.h"
const char *HTTPClient::_methods[METHOD_MAX] = { const char *HTTPClient::_methods[METHOD_MAX] = {
"GET", "GET",

View File

@ -31,10 +31,10 @@
#ifndef HTTP_CLIENT_H #ifndef HTTP_CLIENT_H
#define HTTP_CLIENT_H #define HTTP_CLIENT_H
#include "io/ip.h" #include "core/io/ip.h"
#include "io/stream_peer.h" #include "core/io/stream_peer.h"
#include "io/stream_peer_tcp.h" #include "core/io/stream_peer_tcp.h"
#include "reference.h" #include "core/reference.h"
class HTTPClient : public Reference { class HTTPClient : public Reference {

View File

@ -30,7 +30,8 @@
#include "image_loader.h" #include "image_loader.h"
#include "print_string.h" #include "core/print_string.h"
bool ImageFormatLoader::recognize(const String &p_extension) const { bool ImageFormatLoader::recognize(const String &p_extension) const {
List<String> extensions; List<String> extensions;

View File

@ -31,11 +31,11 @@
#ifndef IMAGE_LOADER_H #ifndef IMAGE_LOADER_H
#define IMAGE_LOADER_H #define IMAGE_LOADER_H
#include "image.h" #include "core/image.h"
#include "io/resource_loader.h" #include "core/io/resource_loader.h"
#include "list.h" #include "core/list.h"
#include "os/file_access.h" #include "core/os/file_access.h"
#include "ustring.h" #include "core/ustring.h"
/** /**
@author Juan Linietsky <reduzio@gmail.com> @author Juan Linietsky <reduzio@gmail.com>

View File

@ -29,9 +29,10 @@
/*************************************************************************/ /*************************************************************************/
#include "ip.h" #include "ip.h"
#include "hash_map.h"
#include "os/semaphore.h" #include "core/hash_map.h"
#include "os/thread.h" #include "core/os/semaphore.h"
#include "core/os/thread.h"
VARIANT_ENUM_CAST(IP::ResolverStatus); VARIANT_ENUM_CAST(IP::ResolverStatus);

View File

@ -31,8 +31,8 @@
#ifndef IP_H #ifndef IP_H
#define IP_H #define IP_H
#include "io/ip_address.h" #include "core/io/ip_address.h"
#include "os/os.h" #include "core/os/os.h"
struct _IP_ResolverPrivate; struct _IP_ResolverPrivate;

View File

@ -31,7 +31,7 @@
#ifndef IP_ADDRESS_H #ifndef IP_ADDRESS_H
#define IP_ADDRESS_H #define IP_ADDRESS_H
#include "ustring.h" #include "core/ustring.h"
struct IP_Address { struct IP_Address {

View File

@ -29,7 +29,8 @@
/*************************************************************************/ /*************************************************************************/
#include "json.h" #include "json.h"
#include "print_string.h"
#include "core/print_string.h"
const char *JSON::tk_name[TK_MAX] = { const char *JSON::tk_name[TK_MAX] = {
"'{'", "'{'",

View File

@ -31,7 +31,7 @@
#ifndef JSON_H #ifndef JSON_H
#define JSON_H #define JSON_H
#include "variant.h" #include "core/variant.h"
class JSON { class JSON {

View File

@ -30,9 +30,9 @@
#include "logger.h" #include "logger.h"
#include "os/dir_access.h" #include "core/os/dir_access.h"
#include "os/os.h" #include "core/os/os.h"
#include "print_string.h" #include "core/print_string.h"
// va_copy was defined in the C99, but not in C++ standards before C++11. // va_copy was defined in the C99, but not in C++ standards before C++11.
// When you compile C++ without --std=c++<XX> option, compilers still define // When you compile C++ without --std=c++<XX> option, compilers still define

View File

@ -31,9 +31,10 @@
#ifndef LOGGER_H #ifndef LOGGER_H
#define LOGGER_H #define LOGGER_H
#include "os/file_access.h" #include "core/os/file_access.h"
#include "ustring.h" #include "core/ustring.h"
#include "vector.h" #include "core/vector.h"
#include <stdarg.h> #include <stdarg.h>
class Logger { class Logger {
@ -106,4 +107,4 @@ public:
virtual ~CompositeLogger(); virtual ~CompositeLogger();
}; };
#endif #endif

View File

@ -29,9 +29,11 @@
/*************************************************************************/ /*************************************************************************/
#include "marshalls.h" #include "marshalls.h"
#include "os/keyboard.h"
#include "print_string.h" #include "core/os/keyboard.h"
#include "reference.h" #include "core/print_string.h"
#include "core/reference.h"
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>

View File

@ -31,10 +31,10 @@
#ifndef MARSHALLS_H #ifndef MARSHALLS_H
#define MARSHALLS_H #define MARSHALLS_H
#include "typedefs.h" #include "core/reference.h"
#include "core/typedefs.h"
#include "core/variant.h"
#include "reference.h"
#include "variant.h"
/** /**
* Miscellaneous helpers for marshalling data types, and encoding * Miscellaneous helpers for marshalling data types, and encoding
* in an endian independent way * in an endian independent way

View File

@ -28,7 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/ /*************************************************************************/
#include "core/io/multiplayer_api.h" #include "multiplayer_api.h"
#include "core/io/marshalls.h" #include "core/io/marshalls.h"
#include "scene/main/node.h" #include "scene/main/node.h"

View File

@ -31,7 +31,7 @@
#ifndef NETWORKED_MULTIPLAYER_PEER_H #ifndef NETWORKED_MULTIPLAYER_PEER_H
#define NETWORKED_MULTIPLAYER_PEER_H #define NETWORKED_MULTIPLAYER_PEER_H
#include "io/packet_peer.h" #include "core/io/packet_peer.h"
class NetworkedMultiplayerPeer : public PacketPeer { class NetworkedMultiplayerPeer : public PacketPeer {

View File

@ -30,8 +30,9 @@
#include "packet_peer.h" #include "packet_peer.h"
#include "io/marshalls.h" #include "core/io/marshalls.h"
#include "project_settings.h" #include "core/project_settings.h"
/* helpers / binders */ /* helpers / binders */
PacketPeer::PacketPeer() { PacketPeer::PacketPeer() {

View File

@ -31,9 +31,10 @@
#ifndef PACKET_PEER_H #ifndef PACKET_PEER_H
#define PACKET_PEER_H #define PACKET_PEER_H
#include "io/stream_peer.h" #include "core/io/stream_peer.h"
#include "object.h" #include "core/object.h"
#include "ring_buffer.h" #include "core/ring_buffer.h"
class PacketPeer : public Reference { class PacketPeer : public Reference {
GDCLASS(PacketPeer, Reference); GDCLASS(PacketPeer, Reference);

View File

@ -29,7 +29,8 @@
/*************************************************************************/ /*************************************************************************/
#include "packet_peer_udp.h" #include "packet_peer_udp.h"
#include "io/ip.h"
#include "core/io/ip.h"
PacketPeerUDP *(*PacketPeerUDP::_create)() = NULL; PacketPeerUDP *(*PacketPeerUDP::_create)() = NULL;

View File

@ -31,8 +31,8 @@
#ifndef PACKET_PEER_UDP_H #ifndef PACKET_PEER_UDP_H
#define PACKET_PEER_UDP_H #define PACKET_PEER_UDP_H
#include "io/ip.h" #include "core/io/ip.h"
#include "io/packet_peer.h" #include "core/io/packet_peer.h"
class PacketPeerUDP : public PacketPeer { class PacketPeerUDP : public PacketPeer {
GDCLASS(PacketPeerUDP, PacketPeer); GDCLASS(PacketPeerUDP, PacketPeer);

View File

@ -29,8 +29,9 @@
/*************************************************************************/ /*************************************************************************/
#include "pck_packer.h" #include "pck_packer.h"
#include "core/os/file_access.h" #include "core/os/file_access.h"
#include "version.h" #include "core/version.h"
static uint64_t _align(uint64_t p_n, int p_alignment) { static uint64_t _align(uint64_t p_n, int p_alignment) {

View File

@ -31,9 +31,9 @@
#ifndef RESOURCE_FORMAT_BINARY_H #ifndef RESOURCE_FORMAT_BINARY_H
#define RESOURCE_FORMAT_BINARY_H #define RESOURCE_FORMAT_BINARY_H
#include "io/resource_loader.h" #include "core/io/resource_loader.h"
#include "io/resource_saver.h" #include "core/io/resource_saver.h"
#include "os/file_access.h" #include "core/os/file_access.h"
class ResourceInteractiveLoaderBinary : public ResourceInteractiveLoader { class ResourceInteractiveLoaderBinary : public ResourceInteractiveLoader {

View File

@ -30,8 +30,8 @@
#include "resource_import.h" #include "resource_import.h"
#include "os/os.h" #include "core/os/os.h"
#include "variant_parser.h" #include "core/variant_parser.h"
Error ResourceFormatImporter::_get_path_and_type(const String &p_path, PathAndType &r_path_and_type, bool *r_valid) const { Error ResourceFormatImporter::_get_path_and_type(const String &p_path, PathAndType &r_path_and_type, bool *r_valid) const {

View File

@ -31,7 +31,8 @@
#ifndef RESOURCE_IMPORT_H #ifndef RESOURCE_IMPORT_H
#define RESOURCE_IMPORT_H #define RESOURCE_IMPORT_H
#include "io/resource_loader.h" #include "core/io/resource_loader.h"
class ResourceImporter; class ResourceImporter;
class ResourceFormatImporter : public ResourceFormatLoader { class ResourceFormatImporter : public ResourceFormatLoader {

View File

@ -29,14 +29,16 @@
/*************************************************************************/ /*************************************************************************/
#include "resource_loader.h" #include "resource_loader.h"
#include "io/resource_import.h"
#include "os/file_access.h" #include "core/io/resource_import.h"
#include "os/os.h" #include "core/os/file_access.h"
#include "path_remap.h" #include "core/os/os.h"
#include "print_string.h" #include "core/path_remap.h"
#include "project_settings.h" #include "core/print_string.h"
#include "translation.h" #include "core/project_settings.h"
#include "variant_parser.h" #include "core/translation.h"
#include "core/variant_parser.h"
ResourceFormatLoader *ResourceLoader::loader[MAX_LOADERS]; ResourceFormatLoader *ResourceLoader::loader[MAX_LOADERS];
int ResourceLoader::loader_count = 0; int ResourceLoader::loader_count = 0;

View File

@ -31,7 +31,7 @@
#ifndef RESOURCE_LOADER_H #ifndef RESOURCE_LOADER_H
#define RESOURCE_LOADER_H #define RESOURCE_LOADER_H
#include "resource.h" #include "core/resource.h"
/** /**
@author Juan Linietsky <reduzio@gmail.com> @author Juan Linietsky <reduzio@gmail.com>

View File

@ -29,10 +29,11 @@
/*************************************************************************/ /*************************************************************************/
#include "resource_saver.h" #include "resource_saver.h"
#include "os/file_access.h"
#include "project_settings.h" #include "core/io/resource_loader.h"
#include "resource_loader.h" #include "core/os/file_access.h"
#include "script_language.h" #include "core/project_settings.h"
#include "core/script_language.h"
ResourceFormatSaver *ResourceSaver::saver[MAX_SAVERS]; ResourceFormatSaver *ResourceSaver::saver[MAX_SAVERS];

View File

@ -31,7 +31,7 @@
#ifndef RESOURCE_SAVER_H #ifndef RESOURCE_SAVER_H
#define RESOURCE_SAVER_H #define RESOURCE_SAVER_H
#include "resource.h" #include "core/resource.h"
/** /**
@author Juan Linietsky <reduzio@gmail.com> @author Juan Linietsky <reduzio@gmail.com>

View File

@ -29,7 +29,8 @@
/*************************************************************************/ /*************************************************************************/
#include "stream_peer.h" #include "stream_peer.h"
#include "io/marshalls.h"
#include "core/io/marshalls.h"
Error StreamPeer::_put_data(const PoolVector<uint8_t> &p_data) { Error StreamPeer::_put_data(const PoolVector<uint8_t> &p_data) {

View File

@ -31,7 +31,7 @@
#ifndef STREAM_PEER_H #ifndef STREAM_PEER_H
#define STREAM_PEER_H #define STREAM_PEER_H
#include "reference.h" #include "core/reference.h"
class StreamPeer : public Reference { class StreamPeer : public Reference {
GDCLASS(StreamPeer, Reference); GDCLASS(StreamPeer, Reference);

View File

@ -29,8 +29,9 @@
/*************************************************************************/ /*************************************************************************/
#include "stream_peer_ssl.h" #include "stream_peer_ssl.h"
#include "os/file_access.h"
#include "project_settings.h" #include "core/os/file_access.h"
#include "core/project_settings.h"
StreamPeerSSL *(*StreamPeerSSL::_create)() = NULL; StreamPeerSSL *(*StreamPeerSSL::_create)() = NULL;

View File

@ -31,7 +31,7 @@
#ifndef STREAM_PEER_SSL_H #ifndef STREAM_PEER_SSL_H
#define STREAM_PEER_SSL_H #define STREAM_PEER_SSL_H
#include "io/stream_peer.h" #include "core/io/stream_peer.h"
class StreamPeerSSL : public StreamPeer { class StreamPeerSSL : public StreamPeer {
GDCLASS(StreamPeerSSL, StreamPeer); GDCLASS(StreamPeerSSL, StreamPeer);

View File

@ -31,10 +31,9 @@
#ifndef STREAM_PEER_TCP_H #ifndef STREAM_PEER_TCP_H
#define STREAM_PEER_TCP_H #define STREAM_PEER_TCP_H
#include "stream_peer.h" #include "core/io/ip.h"
#include "core/io/ip_address.h"
#include "io/ip.h" #include "core/io/stream_peer.h"
#include "ip_address.h"
class StreamPeerTCP : public StreamPeer { class StreamPeerTCP : public StreamPeer {

View File

@ -31,9 +31,9 @@
#ifndef TCP_SERVER_H #ifndef TCP_SERVER_H
#define TCP_SERVER_H #define TCP_SERVER_H
#include "io/ip.h" #include "core/io/ip.h"
#include "io/stream_peer.h" #include "core/io/stream_peer.h"
#include "stream_peer_tcp.h" #include "core/io/stream_peer_tcp.h"
class TCP_Server : public Reference { class TCP_Server : public Reference {

View File

@ -29,8 +29,9 @@
/*************************************************************************/ /*************************************************************************/
#include "translation_loader_po.h" #include "translation_loader_po.h"
#include "os/file_access.h"
#include "translation.h" #include "core/os/file_access.h"
#include "core/translation.h"
RES TranslationLoaderPO::load_translation(FileAccess *f, Error *r_error, const String &p_path) { RES TranslationLoaderPO::load_translation(FileAccess *f, Error *r_error, const String &p_path) {

View File

@ -31,9 +31,10 @@
#ifndef TRANSLATION_LOADER_PO_H #ifndef TRANSLATION_LOADER_PO_H
#define TRANSLATION_LOADER_PO_H #define TRANSLATION_LOADER_PO_H
#include "io/resource_loader.h" #include "core/io/resource_loader.h"
#include "os/file_access.h" #include "core/os/file_access.h"
#include "translation.h" #include "core/translation.h"
class TranslationLoaderPO : public ResourceFormatLoader { class TranslationLoaderPO : public ResourceFormatLoader {
public: public:
static RES load_translation(FileAccess *f, Error *r_error, const String &p_path = String()); static RES load_translation(FileAccess *f, Error *r_error, const String &p_path = String());

View File

@ -29,7 +29,9 @@
/*************************************************************************/ /*************************************************************************/
#include "xml_parser.h" #include "xml_parser.h"
#include "print_string.h"
#include "core/print_string.h"
//#define DEBUG_XML //#define DEBUG_XML
VARIANT_ENUM_CAST(XMLParser::NodeType); VARIANT_ENUM_CAST(XMLParser::NodeType);

View File

@ -31,10 +31,10 @@
#ifndef XML_PARSER_H #ifndef XML_PARSER_H
#define XML_PARSER_H #define XML_PARSER_H
#include "os/file_access.h" #include "core/os/file_access.h"
#include "reference.h" #include "core/reference.h"
#include "ustring.h" #include "core/ustring.h"
#include "vector.h" #include "core/vector.h"
/* /*
Based on irrXML (see their zlib license). Added mainly for compatibility with their Collada loader. Based on irrXML (see their zlib license). Added mainly for compatibility with their Collada loader.

View File

@ -31,8 +31,8 @@
#ifndef ZIP_IO_H #ifndef ZIP_IO_H
#define ZIP_IO_H #define ZIP_IO_H
#include "os/copymem.h" #include "core/os/copymem.h"
#include "os/file_access.h" #include "core/os/file_access.h"
#include "thirdparty/minizip/unzip.h" #include "thirdparty/minizip/unzip.h"
#include "thirdparty/minizip/zip.h" #include "thirdparty/minizip/zip.h"

View File

@ -31,8 +31,8 @@
#ifndef GLOBALS_LIST_H #ifndef GLOBALS_LIST_H
#define GLOBALS_LIST_H #define GLOBALS_LIST_H
#include "os/memory.h" #include "core/os/memory.h"
#include "sort.h" #include "core/sort.h"
/** /**
* Generic Templatized Linked List Implementation. * Generic Templatized Linked List Implementation.

View File

@ -31,7 +31,7 @@
#ifndef MAP_H #ifndef MAP_H
#define MAP_H #define MAP_H
#include "set.h" #include "core/set.h"
/** /**
@author Juan Linietsky <reduzio@gmail.com> @author Juan Linietsky <reduzio@gmail.com>

View File

@ -29,9 +29,10 @@
/*************************************************************************/ /*************************************************************************/
#include "a_star.h" #include "a_star.h"
#include "geometry.h"
#include "core/math/geometry.h"
#include "core/script_language.h"
#include "scene/scene_string_names.h" #include "scene/scene_string_names.h"
#include "script_language.h"
int AStar::get_available_point_id() const { int AStar::get_available_point_id() const {

View File

@ -31,8 +31,9 @@
#ifndef ASTAR_H #ifndef ASTAR_H
#define ASTAR_H #define ASTAR_H
#include "reference.h" #include "core/reference.h"
#include "self_list.h" #include "core/self_list.h"
/** /**
A* pathfinding algorithm A* pathfinding algorithm

View File

@ -30,7 +30,7 @@
#include "aabb.h" #include "aabb.h"
#include "print_string.h" #include "core/print_string.h"
real_t AABB::get_area() const { real_t AABB::get_area() const {

View File

@ -31,9 +31,9 @@
#ifndef AABB_H #ifndef AABB_H
#define AABB_H #define AABB_H
#include "math_defs.h" #include "core/math/math_defs.h"
#include "plane.h" #include "core/math/plane.h"
#include "vector3.h" #include "core/math/vector3.h"
/** /**
* AABB / AABB (Axis Aligned Bounding Box) * AABB / AABB (Axis Aligned Bounding Box)

View File

@ -31,7 +31,7 @@
#ifndef AUDIOFRAME_H #ifndef AUDIOFRAME_H
#define AUDIOFRAME_H #define AUDIOFRAME_H
#include "typedefs.h" #include "core/typedefs.h"
static inline float undenormalise(volatile float f) { static inline float undenormalise(volatile float f) {
union { union {

View File

@ -29,8 +29,9 @@
/*************************************************************************/ /*************************************************************************/
#include "bsp_tree.h" #include "bsp_tree.h"
#include "error_macros.h"
#include "print_string.h" #include "core/error_macros.h"
#include "core/print_string.h"
void BSP_Tree::from_aabb(const AABB &p_aabb) { void BSP_Tree::from_aabb(const AABB &p_aabb) {

View File

@ -31,13 +31,13 @@
#ifndef BSP_TREE_H #ifndef BSP_TREE_H
#define BSP_TREE_H #define BSP_TREE_H
#include "aabb.h" #include "core/dvector.h"
#include "dvector.h" #include "core/math/aabb.h"
#include "face3.h" #include "core/math/face3.h"
#include "method_ptrcall.h" #include "core/math/plane.h"
#include "plane.h" #include "core/method_ptrcall.h"
#include "variant.h" #include "core/variant.h"
#include "vector.h" #include "core/vector.h"
/** /**
@author Juan Linietsky <reduzio@gmail.com> @author Juan Linietsky <reduzio@gmail.com>
*/ */

View File

@ -29,8 +29,9 @@
/*************************************************************************/ /*************************************************************************/
#include "camera_matrix.h" #include "camera_matrix.h"
#include "math_funcs.h"
#include "print_string.h" #include "core/math/math_funcs.h"
#include "core/print_string.h"
void CameraMatrix::set_identity() { void CameraMatrix::set_identity() {

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