xo-numeric: streamline setup
This commit is contained in:
parent
dc43feece0
commit
884a6074d7
8 changed files with 190 additions and 241 deletions
25
include/xo/numeric/SetupNumeric.hpp
Normal file
25
include/xo/numeric/SetupNumeric.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/** @file SetupNumeric.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Feb 2026
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "PrimitiveRegistry.hpp"
|
||||
#include <xo/alloc2/Collector.hpp>
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
/** Setup numeric facet dispatch **/
|
||||
struct SetupNumeric {
|
||||
public:
|
||||
static bool register_facets();
|
||||
/** Register primitive factories with primitive registry **/
|
||||
static bool register_primitives(obj<ARuntimeContext> rcx,
|
||||
InstallSink sink,
|
||||
InstallFlags flags);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/* end SetupNumeric.hpp */
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
/** @file numeric_register_facets.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Feb 2026
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
/** Setup numeric facet dispatch **/
|
||||
bool numeric_register_facets();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* end numeric_register_facets.hpp */
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
/** @file numeric_register_primitives.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Mar 2026
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "PrimitiveRegistry.hpp"
|
||||
#include <xo/alloc2/Collector.hpp>
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
/** Register primitive factories with primitive registry **/
|
||||
bool numeric_register_primitives(obj<ARuntimeContext> rcx,
|
||||
//obj<xo::mm::AAllocator> mm,
|
||||
//StringTable * stbl,
|
||||
InstallSink sink,
|
||||
InstallFlags flags);
|
||||
}
|
||||
}
|
||||
|
||||
/* end numeric_register_primitives.hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue