aboutsummaryrefslogtreecommitdiff
path: root/libbase/src/core
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-11-02 11:05:18 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-11-02 11:05:18 +0800
commit3cba709128fc153533e029226b3f09b1ae7ac18e (patch)
tree6f2d752feb8ecc49bd35fb90146e3e1d4ae4bd6f /libbase/src/core
parent47c262e7ea143311a9fea4b33c0ad24a0bcb83f5 (diff)
downloadrcc-project-3cba709128fc153533e029226b3f09b1ae7ac18e.tar.gz
rcc-project-3cba709128fc153533e029226b3f09b1ae7ac18e.tar.xz
[libbase] Rename public namespace and unreachable symbols
Diffstat (limited to 'libbase/src/core')
-rw-r--r--libbase/src/core/error/Errno.cc4
-rw-r--r--libbase/src/core/math/MathExtras.cc4
-rw-r--r--libbase/src/core/memory/MemAlloc.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/libbase/src/core/error/Errno.cc b/libbase/src/core/error/Errno.cc
index 3c85930..c861e46 100644
--- a/libbase/src/core/error/Errno.cc
+++ b/libbase/src/core/error/Errno.cc
@@ -27,7 +27,7 @@
#include <cstring>
#include <errno.h>
-namespace rcc
+namespace libbase
{
namespace sys
{
@@ -76,4 +76,4 @@ StrError (int errnum)
}
} // namespace sys
-} // namespace rcc
+} // namespace libbase
diff --git a/libbase/src/core/math/MathExtras.cc b/libbase/src/core/math/MathExtras.cc
index 8d1798f..e691a3c 100644
--- a/libbase/src/core/math/MathExtras.cc
+++ b/libbase/src/core/math/MathExtras.cc
@@ -39,7 +39,7 @@
#include <cmath>
#endif
-namespace rcc
+namespace libbase
{
#if defined(_MSC_VER)
@@ -94,4 +94,4 @@ NumDigitsBase10 (uint64_t X)
return Digits + (X >= Data.Boundaries[Digits]);
}
-} // namespace rcc
+} // namespace libbase
diff --git a/libbase/src/core/memory/MemAlloc.cpp b/libbase/src/core/memory/MemAlloc.cpp
index b418d40..38e3bfd 100644
--- a/libbase/src/core/memory/MemAlloc.cpp
+++ b/libbase/src/core/memory/MemAlloc.cpp
@@ -33,7 +33,7 @@
// These are out of line to have __cpp_aligned_new not affect ABI.
LIBBASE_ATTRIBUTE_RETURNS_NONNULL LIBBASE_ATTRIBUTE_RETURNS_NOALIAS void *
-rcc::allocate_buffer (size_t Size, size_t Alignment)
+libbase::allocate_buffer (size_t Size, size_t Alignment)
{
void *Result = ::operator new (Size,
#ifdef __cpp_aligned_new
@@ -48,7 +48,7 @@ rcc::allocate_buffer (size_t Size, size_t Alignment)
}
void
-rcc::deallocate_buffer (void *Ptr, size_t Size, size_t Alignment)
+libbase::deallocate_buffer (void *Ptr, size_t Size, size_t Alignment)
{
::operator delete (Ptr
#ifdef __cpp_sized_deallocation