@@ -421,7 +421,7 @@ STATIC const MGVTBL ithread_vtbl = {
421
421
ithread_mg_free , /* free */
422
422
0 , /* copy */
423
423
ithread_mg_dup , /* dup */
424
- #if ( PERL_VERSION > 8 ) || ( PERL_VERSION == 8 && PERL_SUBVERSION > 8 )
424
+ #if PERL_VERSION_GT ( 5 , 8 , 8 )
425
425
0 /* local */
426
426
#endif
427
427
};
@@ -751,7 +751,7 @@ S_ithread_create(
751
751
AV * params ;
752
752
SV * * array ;
753
753
754
- #if PERL_VERSION <= 8 && PERL_SUBVERSION <= 7
754
+ #if PERL_VERSION_LE ( 5 , 8 , 7 )
755
755
SV * * tmps_tmp = PL_tmps_stack ;
756
756
IV tmps_ix = PL_tmps_ix ;
757
757
#endif
@@ -849,7 +849,7 @@ S_ithread_create(
849
849
* context for the duration of our work for new interpreter.
850
850
*/
851
851
{
852
- #if ( PERL_VERSION > 13 ) || ( PERL_VERSION == 13 && PERL_SUBVERSION > 1 )
852
+ #if PERL_VERSION_GE ( 5 , 13 , 2 )
853
853
CLONE_PARAMS * clone_param = Perl_clone_params_new (aTHX , thread -> interp );
854
854
#else
855
855
CLONE_PARAMS clone_param_s ;
@@ -859,7 +859,7 @@ S_ithread_create(
859
859
860
860
MY_CXT_CLONE ;
861
861
862
- #if ( PERL_VERSION < 13 ) || ( PERL_VERSION == 13 && PERL_SUBVERSION <= 1 )
862
+ #if PERL_VERSION_LT ( 5 , 13 , 2 )
863
863
clone_param -> flags = 0 ;
864
864
#endif
865
865
@@ -886,7 +886,7 @@ S_ithread_create(
886
886
perl_clone() and sv_dup_inc(). Hence copy the parameters
887
887
somewhere under our control first, before duplicating. */
888
888
if (num_params ) {
889
- #if ( PERL_VERSION > 8 )
889
+ #if PERL_VERSION_GE ( 5 , 9 , 0 )
890
890
Copy (parent_perl -> Istack_base + params_start , array , num_params , SV * );
891
891
#else
892
892
Copy (parent_perl -> Tstack_base + params_start , array , num_params , SV * );
@@ -897,11 +897,11 @@ S_ithread_create(
897
897
}
898
898
}
899
899
900
- #if ( PERL_VERSION > 13 ) || ( PERL_VERSION == 13 && PERL_SUBVERSION > 1 )
900
+ #if PERL_VERSION_GE ( 5 , 13 , 2 )
901
901
Perl_clone_params_del (clone_param );
902
902
#endif
903
903
904
- #if PERL_VERSION <= 8 && PERL_SUBVERSION <= 7
904
+ #if PERL_VERSION_LT ( 5 , 8 , 8 )
905
905
/* The code below checks that anything living on the tmps stack and
906
906
* has been cloned (so it lives in the ptr_table) has a refcount
907
907
* higher than 0.
@@ -1339,7 +1339,7 @@ ithread_join(...)
1339
1339
/* Get the return value from the call_sv */
1340
1340
/* Objects do not survive this process - FIXME */
1341
1341
if ((thread -> gimme & G_WANT ) != G_VOID ) {
1342
- #if ( PERL_VERSION < 13 ) || ( PERL_VERSION == 13 && PERL_SUBVERSION <= 1 )
1342
+ #if PERL_VERSION_LT ( 5 , 13 , 2 )
1343
1343
AV * params_copy ;
1344
1344
PerlInterpreter * other_perl ;
1345
1345
CLONE_PARAMS clone_params ;
@@ -1766,7 +1766,7 @@ ithread_error(...)
1766
1766
1767
1767
/* If thread died, then clone the error into the calling thread */
1768
1768
if (thread -> state & PERL_ITHR_DIED ) {
1769
- #if ( PERL_VERSION < 13 ) || ( PERL_VERSION == 13 && PERL_SUBVERSION <= 1 )
1769
+ #if PERL_VERSION_LT ( 5 , 13 , 2 )
1770
1770
PerlInterpreter * other_perl ;
1771
1771
CLONE_PARAMS clone_params ;
1772
1772
ithread * current_thread ;
0 commit comments