Skip to content

Commit c6b7560

Browse files
committed
Change some USE_ITHREADS to USE_THREADS
These are where the underlying implementation should not matter.
1 parent 3c45ca2 commit c6b7560

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

locale.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ static int debug_initialization = 0;
359359
/* Automatically include the caller's file, and line number in debugging output;
360360
* and the errno (and/or extended errno) if non-zero. On threaded perls add
361361
* the aTHX too. */
362-
# if defined(USE_ITHREADS) && ! defined(NO_LOCALE_THREADS)
362+
# if defined(USE_THREADS) && ! defined(NO_LOCALE_THREADS)
363363
# define DEBUG_PRE_STMTS \
364364
DEBUG_ERRNO; \
365365
PerlIO_printf(Perl_debug_log, "\n%s: %" LINE_Tf ": 0x%p%s: ", \

makedef.pl

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ BEGIN
120120
# perl.h logic duplication begins
121121

122122

123-
if ($define{USE_ITHREADS}) {
123+
if ($define{USE_THREADS}) {
124124
if (!$define{MULTIPLICITY}) {
125125
$define{MULTIPLICITY} = 1;
126126
}
127127
}
128128

129129
$define{MULTIPLICITY} ||= $define{PERL_IMPLICIT_CONTEXT} ;
130130

131-
if ($define{USE_ITHREADS} && ! $define{WIN32}) {
131+
if ($define{USE_THREADS} && ! $define{WIN32}) {
132132
$define{USE_REENTRANT_API} = 1;
133133
}
134134

@@ -149,7 +149,7 @@ BEGIN
149149

150150
# https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering
151151
my $cctype = $ARGS{CCTYPE} =~ s/MSVC//r;
152-
if ( $define{USE_ITHREADS}
152+
if ( $define{USE_THREADS}
153153
&& $define{USE_LOCALE}
154154
&& ! $define{NO_LOCALE_THREADS})
155155
{

perl.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ no normal arguments, and used by L</C<comma_pDEPTH>> itself.
120120
/* See L<perlguts/"The Perl API"> for detailed notes on
121121
* MULTIPLICITY and PERL_IMPLICIT_SYS */
122122

123-
#ifdef USE_ITHREADS
123+
#ifdef USE_THREADS
124124
# if !defined(MULTIPLICITY)
125125
# define MULTIPLICITY
126126
# endif
@@ -1226,7 +1226,7 @@ typedef enum {
12261226
* The defines from here to the following ===== line are unfortunately
12271227
* duplicated in makedef.pl, and changes here MUST also be made there */
12281228

1229-
# if defined(USE_ITHREADS) && ! defined(NO_LOCALE_THREADS)
1229+
# if defined(USE_THREADS) && ! defined(NO_LOCALE_THREADS)
12301230
# define USE_LOCALE_THREADS
12311231
# endif
12321232

@@ -5223,7 +5223,7 @@ typedef Sighandler_t Sigsave_t;
52235223

52245224
#if defined(USE_PERLIO)
52255225
EXTERN_C void PerlIO_teardown(void);
5226-
# ifdef USE_ITHREADS
5226+
# ifdef USE_THREADS
52275227
# define PERLIO_INIT MUTEX_INIT(&PL_perlio_mutex)
52285228
# define PERLIO_TERM \
52295229
STMT_START { \
@@ -6911,7 +6911,7 @@ typedef struct am_table_short AMTS;
69116911

69126912
#define PERLDB_LINE_OR_SAVESRC (PL_perldb & (PERLDBf_LINE | PERLDBf_SAVESRC))
69136913

6914-
#ifdef USE_ITHREADS
6914+
#ifdef USE_THREADS
69156915
# define KEYWORD_PLUGIN_MUTEX_INIT MUTEX_INIT(&PL_keyword_plugin_mutex)
69166916
# define KEYWORD_PLUGIN_MUTEX_LOCK MUTEX_LOCK(&PL_keyword_plugin_mutex)
69176917
# define KEYWORD_PLUGIN_MUTEX_UNLOCK MUTEX_UNLOCK(&PL_keyword_plugin_mutex)

0 commit comments

Comments
 (0)