From 8f1ebe55f797d5dc1a6296976865a499ff68c2e5 Mon Sep 17 00:00:00 2001 From: Jinho Bang Date: Mon, 26 Feb 2018 23:36:42 +0000 Subject: [PATCH] Move core/*.h to legacy_core/ They will be removed once finishing refactoring core/. ISSUE=#227 --- {core => legacy_core}/bacardi.h | 0 {core => legacy_core}/enum_validator.h | 0 {core => legacy_core}/idl_base.h | 0 {core => legacy_core}/idl_types.h | 2 +- {core => legacy_core}/js_type_traits.h | 0 {core => legacy_core}/native_type_traits.h | 4 ++-- template/bacardi_cpp.njk | 2 +- template/interface_cpp.njk | 6 +++--- 8 files changed, 7 insertions(+), 7 deletions(-) rename {core => legacy_core}/bacardi.h (100%) rename {core => legacy_core}/enum_validator.h (100%) rename {core => legacy_core}/idl_base.h (100%) rename {core => legacy_core}/idl_types.h (97%) rename {core => legacy_core}/js_type_traits.h (100%) rename {core => legacy_core}/native_type_traits.h (99%) diff --git a/core/bacardi.h b/legacy_core/bacardi.h similarity index 100% rename from core/bacardi.h rename to legacy_core/bacardi.h diff --git a/core/enum_validator.h b/legacy_core/enum_validator.h similarity index 100% rename from core/enum_validator.h rename to legacy_core/enum_validator.h diff --git a/core/idl_base.h b/legacy_core/idl_base.h similarity index 100% rename from core/idl_base.h rename to legacy_core/idl_base.h diff --git a/core/idl_types.h b/legacy_core/idl_types.h similarity index 97% rename from core/idl_types.h rename to legacy_core/idl_types.h index 57f52bb..781d84b 100644 --- a/core/idl_types.h +++ b/legacy_core/idl_types.h @@ -17,7 +17,7 @@ #ifndef CORE_IDL_TYPES_H_ #define CORE_IDL_TYPES_H_ -#include "core/idl_base.h" +#include "legacy_core/idl_base.h" struct IDLBoolean final : public IDLBaseHelper {}; struct IDLByte final : public IDLBaseHelper {}; diff --git a/core/js_type_traits.h b/legacy_core/js_type_traits.h similarity index 100% rename from core/js_type_traits.h rename to legacy_core/js_type_traits.h diff --git a/core/native_type_traits.h b/legacy_core/native_type_traits.h similarity index 99% rename from core/native_type_traits.h rename to legacy_core/native_type_traits.h index 6ced79b..3aff4e5 100644 --- a/core/native_type_traits.h +++ b/legacy_core/native_type_traits.h @@ -20,8 +20,8 @@ #include #include #include -#include "core/idl_base.h" -#include "core/idl_types.h" +#include "legacy_core/idl_base.h" +#include "legacy_core/idl_types.h" template struct NativeTypeTraitsBase { diff --git a/template/bacardi_cpp.njk b/template/bacardi_cpp.njk index e2afd17..662e5c6 100644 --- a/template/bacardi_cpp.njk +++ b/template/bacardi_cpp.njk @@ -17,7 +17,7 @@ #ifndef EXAMPLES_BACARDI_H_ #define EXAMPLES_BACARDI_H_ -#include "core/bacardi.h" +#include "legacy_core/bacardi.h" {% for interface in interfaces %} #include "{{interface.idl_dir_name}}/{{interface.name | snakecase}}_bridge.h" diff --git a/template/interface_cpp.njk b/template/interface_cpp.njk index 971a9c4..df8b170 100644 --- a/template/interface_cpp.njk +++ b/template/interface_cpp.njk @@ -63,9 +63,9 @@ if (info.Env().IsExceptionPending()) { #include "{{idl_dir_name}}/{{name | snakecase}}_bridge.h" -#include "core/js_type_traits.h" -#include "core/native_type_traits.h" -#include "core/enum_validator.h" +#include "legacy_core/js_type_traits.h" +#include "legacy_core/native_type_traits.h" +#include "legacy_core/enum_validator.h" void {{name}}Bridge::Init(Napi::Env env, Napi::Object exports) { Napi::Function js_constructor =