From 4a2bbd0761eca5ee40c098edca59fa3879be6f42 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Mon, 16 Mar 2026 19:12:09 -0500 Subject: [PATCH] xo-alloc2: streamline setup --- include/xo/alloc2/alloc2_register_facets.hpp | 15 --------------- src/alloc2/CMakeLists.txt | 2 +- src/alloc2/init_alloc2.cpp | 6 +++--- 3 files changed, 4 insertions(+), 19 deletions(-) delete mode 100644 include/xo/alloc2/alloc2_register_facets.hpp diff --git a/include/xo/alloc2/alloc2_register_facets.hpp b/include/xo/alloc2/alloc2_register_facets.hpp deleted file mode 100644 index a53248a..0000000 --- a/include/xo/alloc2/alloc2_register_facets.hpp +++ /dev/null @@ -1,15 +0,0 @@ -/** @file alloc2_register_facets.hpp - * - * @author Roland Conybeare, Feb 2026 - **/ - -#pragma once - -namespace xo { - namespace mm { - /** Register alloc2 (facet,impl) combinations with Facet Registry **/ - bool alloc2_register_facets(); - } -} - -/* end alloc2_register_facets.hpp */ diff --git a/src/alloc2/CMakeLists.txt b/src/alloc2/CMakeLists.txt index 00230b9..0fa0cfb 100644 --- a/src/alloc2/CMakeLists.txt +++ b/src/alloc2/CMakeLists.txt @@ -4,7 +4,7 @@ set(SELF_LIB xo_alloc2) set(SELF_SRCS init_alloc2.cpp - alloc2_register_facets.cpp + SetupAlloc2.cpp CollectorTypeRegistry.cpp diff --git a/src/alloc2/init_alloc2.cpp b/src/alloc2/init_alloc2.cpp index d3fb73f..a10bc66 100644 --- a/src/alloc2/init_alloc2.cpp +++ b/src/alloc2/init_alloc2.cpp @@ -4,17 +4,17 @@ **/ #include "init_alloc2.hpp" -#include "alloc2_register_facets.hpp" +#include "SetupAlloc2.hpp" namespace xo { - using xo::mm::alloc2_register_facets; + using xo::mm::SetupAlloc2; // using xo::mm::alloc2_register_types; // using xo::mm::CollectorTypeRegistry; void InitSubsys::init() { - alloc2_register_facets(); + SetupAlloc2::register_facets(); } InitEvidence