Sprinkle static around
This commit is contained in:
parent
4386626ee0
commit
f371789b40
|
@ -30,8 +30,8 @@ struct test_input_t
|
||||||
{false, SUBSET_FONT_BASE_PATH "NotoSerifMyanmar-Regular.otf"},
|
{false, SUBSET_FONT_BASE_PATH "NotoSerifMyanmar-Regular.otf"},
|
||||||
};
|
};
|
||||||
|
|
||||||
test_input_t *tests = default_tests;
|
static test_input_t *tests = default_tests;
|
||||||
unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
|
static unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
|
||||||
|
|
||||||
enum backend_t { HARFBUZZ, FREETYPE };
|
enum backend_t { HARFBUZZ, FREETYPE };
|
||||||
|
|
||||||
|
|
|
@ -55,8 +55,8 @@ struct test_input_t
|
||||||
true},
|
true},
|
||||||
};
|
};
|
||||||
|
|
||||||
test_input_t *tests = default_tests;
|
static test_input_t *tests = default_tests;
|
||||||
unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
|
static unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
|
||||||
|
|
||||||
enum backend_t { HARFBUZZ, FREETYPE };
|
enum backend_t { HARFBUZZ, FREETYPE };
|
||||||
|
|
||||||
|
|
|
@ -56,14 +56,14 @@ struct test_input_t
|
||||||
true},
|
true},
|
||||||
};
|
};
|
||||||
|
|
||||||
test_input_t *tests = default_tests;
|
static test_input_t *tests = default_tests;
|
||||||
unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
|
static unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
|
||||||
|
|
||||||
enum backend_t { HARFBUZZ, FREETYPE };
|
enum backend_t { HARFBUZZ, FREETYPE };
|
||||||
|
|
||||||
// https://en.cppreference.com/w/cpp/thread/condition_variable/wait
|
// https://en.cppreference.com/w/cpp/thread/condition_variable/wait
|
||||||
std::condition_variable cv;
|
static std::condition_variable cv;
|
||||||
std::mutex cv_m;
|
static std::mutex cv_m;
|
||||||
static bool ready = false;
|
static bool ready = false;
|
||||||
|
|
||||||
static unsigned num_repetitions = 1;
|
static unsigned num_repetitions = 1;
|
||||||
|
|
Loading…
Reference in New Issue