rename: libbase -> libbasen
This commit is contained in:
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -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
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -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\
|
||||||
|
|||||||
@ -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
6
include/basen.hpp
Normal 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>
|
||||||
|
|
||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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);
|
||||||
|
|
||||||
|
|||||||
@ -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))))
|
||||||
|
|||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user