* initialization. This is done before option parsing, and before any thread
* creation, so can be a file-level static */
#ifdef DEBUGGING
+# ifdef PERL_GLOBAL_STRUCT
+ /* no global syms allowed */
+# define debug_initialization 0
+# define DEBUG_INITIALIZATION_set(v)
+# else
static bool debug_initialization = FALSE;
+# define DEBUG_INITIALIZATION_set(v) (debug_initialization = v)
+# endif
#endif
#ifdef USE_LOCALE
#endif
#ifdef DEBUGGING
- debug_initialization = (PerlEnv_getenv("PERL_DEBUG_LOCALE_INIT"))
+ DEBUG_INITIALIZATION_set((PerlEnv_getenv("PERL_DEBUG_LOCALE_INIT"))
? TRUE
- : FALSE;
+ : FALSE);
# define DEBUG_LOCALE_INIT(category, locale, result) \
STMT_START { \
if (debug_initialization) { \
#ifdef DEBUGGING
/* So won't continue to output stuff */
- debug_initialization = FALSE;
+ DEBUG_INITIALIZATION_set(FALSE);
#endif
return ok;