all: more assorted cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2023-01-29 11:39:57 +01:00
parent 340b7614e2
commit 5056215a1f
21 changed files with 107 additions and 65 deletions
+6 -6
View File
@@ -27,8 +27,11 @@
#include "conf.h"
static options_t global_options;
options_t *opt = &global_options; // also see class PackMaster
/*************************************************************************
// options
// reset
**************************************************************************/
void options_t::reset() {
@@ -69,11 +72,8 @@ void options_t::reset() {
o->win32_pe.keep_resource = "";
}
static options_t global_options;
options_t *opt = &global_options;
/*************************************************************************
//
// doctest checks
**************************************************************************/
TEST_CASE("options_t::reset") {
@@ -89,7 +89,7 @@ static inline void test_options(const char *(&a)[N]) {
}
TEST_CASE("getopt") {
options_t *saved_opt = opt;
options_t *const saved_opt = opt;
options_t local_options;
opt = &local_options;
opt->reset();