From 69894f75254cd630e2e4fe1422044c6b7d6adb5f Mon Sep 17 00:00:00 2001 From: Wiimm Date: Wed, 3 Feb 2021 16:42:38 +0100 Subject: SZS 2.23a --- project/src/lib-std.h | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'project/src/lib-std.h') diff --git a/project/src/lib-std.h b/project/src/lib-std.h index 2230199..2fcb06b 100644 --- a/project/src/lib-std.h +++ b/project/src/lib-std.h @@ -17,7 +17,7 @@ * This file is part of the SZS project. * * Visit https://szs.wiimm.de/ for project details and sources. * * * - * Copyright (c) 2011-2020 by Dirk Clemens * + * Copyright (c) 2011-2021 by Dirk Clemens * * * *************************************************************************** * * @@ -68,6 +68,30 @@ #include "xsrc/x-std.h" #endif +// +/////////////////////////////////////////////////////////////////////////////// +/////////////// debugging helper /////////////// +/////////////////////////////////////////////////////////////////////////////// + +#undef LOG_SHA1_ENABLED +#undef LOG_SHA1 + +#if defined(TEST) || defined(DEBUG) + #define LOG_SHA1_ENABLED 1 +#elif HAVE_WIIMM_EXT + #define LOG_SHA1_ENABLED 0 +#else + #define LOG_SHA1_ENABLED 0 +#endif + +#if LOG_SHA1_ENABLED + #define LOG_SHA1(d,s,i) LogSHA1(__FUNCTION__,__FILE__,__LINE__,d,s,i) +#else + #define LOG_SHA1(d,s,i) +#endif + +void LogSHA1 ( ccp func, ccp file, uint line, cvp data, uint size, ccp info ); + // /////////////////////////////////////////////////////////////////////////////// /////////////// defines /////////////// @@ -2149,7 +2173,7 @@ extern bool use_utf8; extern bool use_de; extern bool ctcode_enabled; extern bool lecode_enabled; -extern uint opt_ct_mode; // calculated by ctcode_enabled & lecode_enabled +extern uint opt_ct_mode; // calculated by ctcode_enabled & lecode_enabled extern int testmode; extern int force_count; extern uint opt_tiny; @@ -2178,6 +2202,10 @@ extern file_format_t fform_compr_force; extern file_format_t script_fform; extern ccp script_varname; extern int script_array; +extern LowerUpper_t opt_case; +extern int opt_pmodes; +extern uint opt_fmodes_include; +extern uint opt_fmodes_exclude; extern int opt_pt_dir; extern bool opt_links; extern bool opt_rm_aiparam; -- cgit v1.3.1