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:
Simon Rozman 2023-10-02 10:10:40 +02:00
parent 36012a107b
commit 9ba4b21cef
4 changed files with 10 additions and 10 deletions

View File

@ -16,14 +16,14 @@
namespace stdex
{
/// \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',
'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',
'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 */ 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,

View File

@ -13,7 +13,7 @@ namespace stdex
wchar_t unicode[3]; ///< Unicode string representation
};
static const sgml_unicode_pair sgml_unicode[] = {
const sgml_unicode_pair sgml_unicode[] = {
{ "AElig", L"\u00c6" },
{ "Aacgr", L"\u0386" },
{ "Aacute", L"\u00c1" },
@ -1551,7 +1551,7 @@ namespace stdex
{ "zwnj", L"\u200c" },
};
static const size_t unicode_sgml[] = {
const size_t unicode_sgml[] = {
0x5b6,
0x48d,
0x30d,

View File

@ -79,7 +79,7 @@ namespace stdex
///
/// 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

View File

@ -271,11 +271,11 @@ namespace stdex
}
#ifndef _WIN32
static constexpr stdex::platform_id IMAGE_FILE_MACHINE_UNKNOWN = nullptr;
static constexpr stdex::platform_id IMAGE_FILE_MACHINE_I386 = "i386";
static constexpr stdex::platform_id IMAGE_FILE_MACHINE_AMD64 = "x86_64";
static 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_UNKNOWN = nullptr;
constexpr stdex::platform_id IMAGE_FILE_MACHINE_I386 = "i386";
constexpr stdex::platform_id IMAGE_FILE_MACHINE_AMD64 = "x86_64";
constexpr stdex::platform_id IMAGE_FILE_MACHINE_ARMNT = "arm";
constexpr stdex::platform_id IMAGE_FILE_MACHINE_ARM64 = "aarch64";
#endif
namespace stdex