mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd: Move ircd::mods::demangle() to ircd::demangle().
This commit is contained in:
parent
3a56a30d77
commit
a9ac3f9956
3 changed files with 11 additions and 12 deletions
|
@ -38,9 +38,6 @@ namespace ircd::mods
|
|||
template<class T> struct import_shared;
|
||||
struct paths extern paths;
|
||||
|
||||
std::string demangle(const std::string &symbol);
|
||||
template<class T> std::string demangle();
|
||||
|
||||
std::string postfixed(const std::string &name);
|
||||
std::string unpostfixed(const std::string &name);
|
||||
|
||||
|
@ -69,7 +66,6 @@ namespace ircd
|
|||
using mods::module;
|
||||
using mods::import;
|
||||
using mods::import_shared;
|
||||
using mods::demangle;
|
||||
}
|
||||
|
||||
struct ircd::mods::paths
|
||||
|
@ -272,10 +268,3 @@ const
|
|||
{
|
||||
return reinterpret_cast<const T *>(ptr<const uint8_t>(name));
|
||||
}
|
||||
|
||||
template<class T>
|
||||
std::string
|
||||
ircd::mods::demangle()
|
||||
{
|
||||
return demangle(typeid(T).name());
|
||||
}
|
||||
|
|
|
@ -198,6 +198,9 @@ namespace ircd
|
|||
|
||||
struct socket;
|
||||
struct client;
|
||||
|
||||
std::string demangle(const std::string &symbol);
|
||||
template<class T> std::string demangle();
|
||||
}
|
||||
|
||||
#include "util.h"
|
||||
|
@ -229,3 +232,10 @@ namespace ircd
|
|||
#include "client.h"
|
||||
#include "mods.h"
|
||||
#include "listen.h"
|
||||
|
||||
template<class T>
|
||||
std::string
|
||||
ircd::demangle()
|
||||
{
|
||||
return demangle(typeid(T).name());
|
||||
}
|
||||
|
|
|
@ -584,7 +584,7 @@ ircd::mods::prefix_if_relative(const filesystem::path &path)
|
|||
}
|
||||
|
||||
std::string
|
||||
ircd::mods::demangle(const std::string &symbol)
|
||||
ircd::demangle(const std::string &symbol)
|
||||
{
|
||||
size_t len;
|
||||
int status;
|
||||
|
|
Loading…
Reference in a new issue