Skip to content

Commit

Permalink
locale.c: debug with thread id
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed May 12, 2023
1 parent cd5b8a5 commit 6f833c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions locale.c
Expand Up @@ -119,6 +119,7 @@
* initialization. This is done before option parsing, and before any thread
* creation, so can be a file-level static. (Must come before #including
* perl.h) */
#include "config.h"
#ifdef DEBUGGING
static int debug_initialization = 0;
# define DEBUG_INITIALIZATION_set(v) (debug_initialization = v)
Expand All @@ -128,9 +129,9 @@ static int debug_initialization = 0;
* (or their corresponding unsigned type). So, we have to explicitly cast
* __LINE__ to a particular integer type to pass it reliably to variadic
* functions like (PerlIO_)printf, as below: */
# ifdef USE_LOCALE_THREADS
# if defined(USE_ITHREADS) && ! defined(NO_LOCALE_THREADS)
# define DEBUG_PRE_STMTS \
dSAVE_ERRNO; dTHX; PerlIO_printf(Perl_debug_log,"\n%s: %" LINE_Tf ": %p: ",\
dSAVE_ERRNO; dTHX; PerlIO_printf(Perl_debug_log,"\n%s: %" LINE_Tf ": 0x%p: ",\
__FILE__, (line_t)__LINE__, aTHX);
# else
# define DEBUG_PRE_STMTS \
Expand Down

0 comments on commit 6f833c0

Please sign in to comment.