Un-static global data
Otherwise, compiler generates instances for each compilation unit. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
36012a107b
commit
9ba4b21cef
@ -16,14 +16,14 @@
|
|||||||
namespace stdex
|
namespace stdex
|
||||||
{
|
{
|
||||||
/// \cond internal
|
/// \cond internal
|
||||||
static const char base64_enc_lookup[64] = {
|
const char base64_enc_lookup[64] = {
|
||||||
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
|
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
|
||||||
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
|
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
|
||||||
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
|
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
|
||||||
'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'
|
'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint8_t base64_dec_lookup[256] = {
|
const uint8_t base64_dec_lookup[256] = {
|
||||||
/* 0 1 2 3 4 5 6 7 8 9 A B C D E F */
|
/* 0 1 2 3 4 5 6 7 8 9 A B C D E F */
|
||||||
/* 0 */ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
|
/* 0 */ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
|
||||||
/* 1 */ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
|
/* 1 */ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
|
||||||
|
@ -13,7 +13,7 @@ namespace stdex
|
|||||||
wchar_t unicode[3]; ///< Unicode string representation
|
wchar_t unicode[3]; ///< Unicode string representation
|
||||||
};
|
};
|
||||||
|
|
||||||
static const sgml_unicode_pair sgml_unicode[] = {
|
const sgml_unicode_pair sgml_unicode[] = {
|
||||||
{ "AElig", L"\u00c6" },
|
{ "AElig", L"\u00c6" },
|
||||||
{ "Aacgr", L"\u0386" },
|
{ "Aacgr", L"\u0386" },
|
||||||
{ "Aacute", L"\u00c1" },
|
{ "Aacute", L"\u00c1" },
|
||||||
@ -1551,7 +1551,7 @@ namespace stdex
|
|||||||
{ "zwnj", L"\u200c" },
|
{ "zwnj", L"\u200c" },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const size_t unicode_sgml[] = {
|
const size_t unicode_sgml[] = {
|
||||||
0x5b6,
|
0x5b6,
|
||||||
0x48d,
|
0x48d,
|
||||||
0x30d,
|
0x30d,
|
||||||
|
@ -79,7 +79,7 @@ namespace stdex
|
|||||||
///
|
///
|
||||||
/// Reusable C locale
|
/// Reusable C locale
|
||||||
///
|
///
|
||||||
static locale locale_C(create_locale(LC_ALL, "C"));
|
const locale locale_C(create_locale(LC_ALL, "C"));
|
||||||
|
|
||||||
///
|
///
|
||||||
/// UTF-16 code unit
|
/// UTF-16 code unit
|
||||||
|
@ -271,11 +271,11 @@ namespace stdex
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
static constexpr stdex::platform_id IMAGE_FILE_MACHINE_UNKNOWN = nullptr;
|
constexpr stdex::platform_id IMAGE_FILE_MACHINE_UNKNOWN = nullptr;
|
||||||
static constexpr stdex::platform_id IMAGE_FILE_MACHINE_I386 = "i386";
|
constexpr stdex::platform_id IMAGE_FILE_MACHINE_I386 = "i386";
|
||||||
static constexpr stdex::platform_id IMAGE_FILE_MACHINE_AMD64 = "x86_64";
|
constexpr stdex::platform_id IMAGE_FILE_MACHINE_AMD64 = "x86_64";
|
||||||
static constexpr stdex::platform_id IMAGE_FILE_MACHINE_ARMNT = "arm";
|
constexpr stdex::platform_id IMAGE_FILE_MACHINE_ARMNT = "arm";
|
||||||
static constexpr stdex::platform_id IMAGE_FILE_MACHINE_ARM64 = "aarch64";
|
constexpr stdex::platform_id IMAGE_FILE_MACHINE_ARM64 = "aarch64";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace stdex
|
namespace stdex
|
||||||
|
Loading…
x
Reference in New Issue
Block a user