xo-object2 stack: refactor/tidy after GCObject -> alloc2

This commit is contained in:
Roland Conybeare 2026-03-05 20:11:05 +11:00
commit e2b239dfb9
21 changed files with 29 additions and 29 deletions

View file

@ -48,7 +48,7 @@ xo_add_genfacetimpl(
# note: manual target; generated code committed to git
xo_add_genfacetimpl(
TARGET xo-object2-facetimpl-gcobject-list
FACET_PKG xo_gc
FACET_PKG xo_alloc2
FACET GCObject
REPR List
INPUT idl/IGCObject_DList.json5
@ -68,7 +68,7 @@ xo_add_genfacetimpl(
# note: manual target; generated code committed to git
xo_add_genfacetimpl(
TARGET xo-object2-facetimpl-gcobject-boolean
FACET_PKG xo_gc
FACET_PKG xo_alloc2
FACET GCObject
REPR Boolean
INPUT idl/IGCObject_DBoolean.json5
@ -88,7 +88,7 @@ xo_add_genfacetimpl(
# note: manual target; generated code committed to git
xo_add_genfacetimpl(
TARGET xo-object2-facetimpl-gcobject-float
FACET_PKG xo_gc
FACET_PKG xo_alloc2
FACET GCObject
REPR Float
INPUT idl/IGCObject_DFloat.json5
@ -108,7 +108,7 @@ xo_add_genfacetimpl(
# note: manual target; generated code committed to git
xo_add_genfacetimpl(
TARGET xo-object2-facetimpl-gcobject-integer
FACET_PKG xo_gc
FACET_PKG xo_alloc2
FACET GCObject
REPR Integer
INPUT idl/IGCObject_DInteger.json5
@ -137,7 +137,7 @@ xo_add_genfacetimpl(
# note: manual target; generated code committed to git
xo_add_genfacetimpl(
TARGET xo-object2-facetimpl-gcobject-array
FACET_PKG xo_gc
FACET_PKG xo_alloc2
FACET GCObject
REPR Array
INPUT idl/IGCObject_DArray.json5
@ -157,7 +157,7 @@ xo_add_genfacetimpl(
# note: manual target; generated code committed to git
xo_add_genfacetimpl(
TARGET xo-object2-facetimpl-gcobject-dictionary
FACET_PKG xo_gc
FACET_PKG xo_alloc2
FACET GCObject
REPR Dictionary
INPUT idl/IGCObject_DDictionary.json5
@ -177,7 +177,7 @@ xo_add_genfacetimpl(
# note: manual target; generated code committed to git
xo_add_genfacetimpl(
TARGET xo-object2-facetimpl-gcobject-runtimeerror
FACET_PKG xo_gc
FACET_PKG xo_alloc2
FACET GCObject
REPR RuntimeError
INPUT idl/IGCObject_DRuntimeError.json5

View file

@ -2,8 +2,8 @@
include(CMakeFindDependencyMacro)
find_dependency(reflect)
find_dependency(xo_gc)
find_dependency(xo_stringtable2)
find_dependency(xo_alloc2)
find_dependency(xo_printable2)
find_dependency(subsys)
find_dependency(indentlog)

View file

@ -4,7 +4,7 @@
output_hpp_dir: "include/xo/object2",
output_impl_subdir: "array",
includes: [
"<xo/gc/GCObject.hpp>",
"<xo/alloc2/GCObject.hpp>",
"<xo/alloc2/Allocator.hpp>"
],
local_types: [ ],

View file

@ -4,8 +4,8 @@
output_hpp_dir: "include/xo/object2",
output_impl_subdir: "boolean",
includes: [
"<xo/gc/GCObject.hpp>",
"<xo/alloc2/Allocator.hpp>"
// "<xo/alloc2/GCObject.hpp>",
// "<xo/alloc2/Allocator.hpp>"
],
local_types: [ ],
namespace1: "xo",

View file

@ -4,7 +4,7 @@
output_hpp_dir: "include/xo/object2",
output_impl_subdir: "dictionary",
includes: [
"<xo/gc/GCObject.hpp>",
"<xo/alloc2/GCObject.hpp>",
"<xo/alloc2/Allocator.hpp>"
],
local_types: [ ],

View file

@ -5,7 +5,7 @@
output_impl_subdir: "number",
includes: [
"<xo/object2/number/GCObjectConversion_DFloat.hpp>",
"<xo/gc/GCObject.hpp>",
"<xo/alloc2/GCObject.hpp>",
"<xo/alloc2/Allocator.hpp>"
],
local_types: [ ],

View file

@ -4,7 +4,7 @@
output_hpp_dir: "include/xo/object2",
output_impl_subdir: "number",
includes: [
"<xo/gc/GCObject.hpp>",
"<xo/alloc2/GCObject.hpp>",
"<xo/alloc2/Allocator.hpp>"
],
local_types: [ ],

View file

@ -4,7 +4,7 @@
output_hpp_dir: "include/xo/object2",
output_impl_subdir: "list",
includes: [
// "<xo/gc/GCObject.hpp>",
// "<xo/alloc2/GCObject.hpp>",
// "<xo/alloc2/Allocator.hpp>"
],
local_types: [ ],

View file

@ -4,7 +4,7 @@
output_hpp_dir: "include/xo/object2",
output_impl_subdir: "error",
includes: [
// "<xo/gc/GCObject.hpp>",
// "<xo/alloc2/GCObject.hpp>",
// "<xo/alloc2/Allocator.hpp>"
],
local_types: [ ],

View file

@ -3,7 +3,7 @@
output_cpp_dir: "src/object2",
output_hpp_dir: "include/xo/object2",
output_impl_subdir: "sequence",
includes: ["<xo/gc/GCObject.hpp>"],
includes: ["<xo/alloc2/GCObject.hpp>"],
// extra includes in Sequence.hpp, if any
user_hpp_includes: [],
namespace1: "xo",

View file

@ -64,4 +64,4 @@ namespace xo {
} /*namespace scm*/
} /*namespace xo*/
/* end */
/* end */

View file

@ -14,8 +14,6 @@
#pragma once
#include "GCObject.hpp"
#include <xo/alloc2/GCObject.hpp>
#include <xo/alloc2/Allocator.hpp>
#include "DBoolean.hpp"
namespace xo { namespace scm { class IGCObject_DBoolean; } }
@ -64,4 +62,4 @@ namespace xo {
} /*namespace scm*/
} /*namespace xo*/
/* end */
/* end */

View file

@ -64,4 +64,4 @@ namespace xo {
} /*namespace scm*/
} /*namespace xo*/
/* end */
/* end */

View file

@ -7,7 +7,7 @@
#include "DFloat.hpp"
#include "number/IGCObject_DFloat.hpp"
#include <xo/gc/GCObjectConversion.hpp>
#include <xo/alloc2/GCObjectConversion.hpp>
namespace xo {
namespace scm {

View file

@ -7,7 +7,7 @@
#include "DInteger.hpp"
#include "number/IGCObject_DInteger.hpp"
#include <xo/gc/GCObjectConversion.hpp>
#include <xo/alloc2/GCObjectConversion.hpp>
namespace xo {
namespace scm {

View file

@ -65,4 +65,4 @@ namespace xo {
} /*namespace scm*/
} /*namespace xo*/
/* end */
/* end */

View file

@ -64,4 +64,4 @@ namespace xo {
} /*namespace scm*/
} /*namespace xo*/
/* end */
/* end */

View file

@ -45,8 +45,8 @@ set(SELF_SRCS
xo_add_shared_library4(${SELF_LIB} ${PROJECT_NAME}Targets ${PROJECT_VERSION} 1 ${SELF_SRCS})
# note: deps here must also appear in cmake/xo_object2Config.cmake.in
xo_dependency(${SELF_LIB} reflect)
xo_dependency(${SELF_LIB} xo_gc)
xo_dependency(${SELF_LIB} xo_stringtable2)
xo_dependency(${SELF_LIB} xo_alloc2)
xo_dependency(${SELF_LIB} xo_printable2)
xo_dependency(${SELF_LIB} subsys)
xo_dependency(${SELF_LIB} indentlog)

View file

@ -3,8 +3,8 @@
**/
#include "sequence/ISequence_Any.hpp"
#include <exception>
#include <iostream>
#include <exception>
namespace xo {
namespace scm {

View file

@ -12,5 +12,6 @@ set(UTEST_SRCS
xo_add_utest_executable(${UTEST_EXE} ${UTEST_SRCS})
xo_self_dependency(${UTEST_EXE} xo_object2)
xo_dependency(${UTEST_EXE} xo_gc)
#xo_dependency(${UTEST_EXE} randomgen)
xo_external_target_dependency(${UTEST_EXE} Catch2 Catch2::Catch2)

View file

@ -20,7 +20,8 @@
#include <xo/object2/number/IGCObject_DInteger.hpp>
#include <xo/alloc2/Collector.hpp>
#include <xo/gc/DX1Collector.hpp>
#include <xo/gc/X1Collector.hpp>
#include <xo/gc/detail/IAllocator_DX1Collector.hpp>
#include <xo/gc/detail/ICollector_DX1Collector.hpp>