rename: libbase -> libbasen

This commit is contained in:
2024-09-20 18:29:17 +03:00
parent 4e166d24cf
commit d0ef8a5cb2
19 changed files with 27 additions and 27 deletions

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "distrib/arch"] [submodule "distrib/arch"]
path = distrib/arch path = distrib/arch
url = https://aur.archlinux.org/libbase.git url = https://aur.archlinux.org/libbasen.git

View File

@ -7,7 +7,7 @@ USRDIR ?= /usr
.PHONY: build i install uni uninstall\ .PHONY: build i install uni uninstall\
tools library tests clean tools library tests clean
LIB = base LIB = basen
OBJS =\ OBJS =\
hex\ hex\
baseN\ baseN\

View File

@ -1,6 +0,0 @@
#include <base/base58.hpp>
#include <base/base64.hpp>
#include <base/baseN.hpp>
#include <base/hash/sha256.hpp>
#include <base/hex.hpp>

6
include/basen.hpp Normal file
View File

@ -0,0 +1,6 @@
#include <basen/base58.hpp>
#include <basen/base64.hpp>
#include <basen/baseN.hpp>
#include <basen/hash/sha256.hpp>
#include <basen/hex.hpp>

View File

@ -1,8 +1,8 @@
#include <stdexcept> #include <stdexcept>
#include <base/base58.hpp> #include <basen/base58.hpp>
#include <base/baseN.hpp> #include <basen/baseN.hpp>
#include <base/hash/sha256.hpp> #include <basen/hash/sha256.hpp>
namespace base58 namespace base58
{ {

View File

@ -2,8 +2,8 @@
#include <limits> #include <limits>
#include <stdexcept> #include <stdexcept>
#include <base/base64.hpp> #include <basen/base64.hpp>
#include <base/baseN.hpp> #include <basen/baseN.hpp>
namespace base64 namespace base64
{ {

View File

@ -3,7 +3,7 @@
#include <limits> #include <limits>
#include <stdexcept> #include <stdexcept>
#include <base/baseN.hpp> #include <basen/baseN.hpp>
static constexpr auto log256 = std::log(256); static constexpr auto log256 = std::log(256);

View File

@ -15,7 +15,7 @@
#include <memory.h> #include <memory.h>
#include <stdlib.h> #include <stdlib.h>
#include <base/hash/sha256.hpp> #include <basen/hash/sha256.hpp>
#define ROTLEFT(a,b) (((a) << (b)) | ((a) >> (32-(b)))) #define ROTLEFT(a,b) (((a) << (b)) | ((a) >> (32-(b))))
#define ROTRIGHT(a,b) (((a) >> (b)) | ((a) << (32-(b)))) #define ROTRIGHT(a,b) (((a) >> (b)) | ((a) << (32-(b))))

View File

@ -1,8 +1,8 @@
#include <limits> #include <limits>
#include <stdexcept> #include <stdexcept>
#include <base/baseN.hpp> #include <basen/baseN.hpp>
#include <base/hex.hpp> #include <basen/hex.hpp>
namespace hex namespace hex
{ {

View File

@ -1,5 +1,5 @@
#include <base/hash/sha256.hpp> #include <basen/hash/sha256.hpp>
#include <base/hex.hpp> #include <basen/hex.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
using namespace hash; using namespace hash;

View File

@ -1,7 +1,7 @@
#include <utility> #include <utility>
#include <base/base58.hpp> #include <basen/base58.hpp>
#include <base/hex.hpp> #include <basen/hex.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
using namespace base58; using namespace base58;

View File

@ -1,7 +1,7 @@
#include <utility> #include <utility>
#include <base/base64.hpp> #include <basen/base64.hpp>
#include <base/hex.hpp> #include <basen/hex.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
using namespace base64; using namespace base64;

View File

@ -1,8 +1,8 @@
#include <utility> #include <utility>
#include <base/base58.hpp> #include <basen/base58.hpp>
#include <base/baseN.hpp> #include <basen/baseN.hpp>
#include <base/hex.hpp> #include <basen/hex.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
using namespace baseN; using namespace baseN;

View File

@ -1,4 +1,4 @@
#include <base/hex.hpp> #include <basen/hex.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
using namespace hex; using namespace hex;