@@ -197,10 +197,12 @@ typedef int perl_key;
197197# define Perl_stack_grow dll_Perl_stack_grow
198198# define Perl_set_context dll_Perl_set_context
199199# if (PERL_REVISION == 5 ) && (PERL_VERSION >= 14 )
200- # define Perl_sv_2bool_flags dll_Perl_sv_2bool_flags
201- # define Perl_xs_apiversion_bootcheck dll_Perl_xs_apiversion_bootcheck
200+ # define Perl_sv_2bool_flags dll_Perl_sv_2bool_flags
201+ # if (PERL_REVISION == 5 ) && (PERL_VERSION < 22 )
202+ # define Perl_xs_apiversion_bootcheck dll_Perl_xs_apiversion_bootcheck
203+ # endif
202204# else
203- # define Perl_sv_2bool dll_Perl_sv_2bool
205+ # define Perl_sv_2bool dll_Perl_sv_2bool
204206# endif
205207# define Perl_sv_2iv dll_Perl_sv_2iv
206208# define Perl_sv_2mortal dll_Perl_sv_2mortal
@@ -268,6 +270,10 @@ typedef int perl_key;
268270# define Perl_call_list dll_Perl_call_list
269271# define Perl_Iscopestack_ix_ptr dll_Perl_Iscopestack_ix_ptr
270272# define Perl_Iunitcheckav_ptr dll_Perl_Iunitcheckav_ptr
273+ # if (PERL_REVISION == 5 ) && (PERL_VERSION >= 22 )
274+ # define Perl_xs_handshake dll_Perl_xs_handshake
275+ # define Perl_xs_boot_epilog dll_Perl_xs_boot_epilog
276+ # endif
271277# if (PERL_REVISION == 5 ) && (PERL_VERSION >= 14 )
272278# ifdef USE_ITHREADS
273279# define PL_thr_key *dll_PL_thr_key
@@ -299,7 +305,11 @@ static void (*Perl_croak_nocontext)(const char*, ...);
299305static I32 (* Perl_dowantarray )(pTHX );
300306static void (* Perl_free_tmps )(pTHX );
301307static HV * (* Perl_gv_stashpv )(pTHX_ const char * , I32 );
308+ #if (PERL_REVISION == 5 ) && (PERL_VERSION >= 22 )
309+ static I32 * (* Perl_markstack_grow )(pTHX );
310+ #else
302311static void (* Perl_markstack_grow )(pTHX );
312+ #endif
303313static MAGIC * (* Perl_mg_find )(pTHX_ SV * , int );
304314static CV * (* Perl_newXS )(pTHX_ char * , XSUBADDR_t , char * );
305315static SV * (* Perl_newSV )(pTHX_ STRLEN );
@@ -321,7 +331,9 @@ static SV** (*Perl_stack_grow)(pTHX_ SV**, SV**p, int);
321331static SV * * (* Perl_set_context )(void * );
322332#if (PERL_REVISION == 5 ) && (PERL_VERSION >= 14 )
323333static bool (* Perl_sv_2bool_flags )(pTHX_ SV * , I32 );
334+ # if (PERL_REVISION == 5 ) && (PERL_VERSION < 22 )
324335static void (* Perl_xs_apiversion_bootcheck )(pTHX_ SV * module , const char * api_p , STRLEN api_len );
336+ # endif
325337#else
326338static bool (* Perl_sv_2bool )(pTHX_ SV * );
327339#endif
@@ -394,6 +406,10 @@ static I32* (*Perl_Iscopestack_ix_ptr)(register PerlInterpreter*);
394406static AV * * (* Perl_Iunitcheckav_ptr )(register PerlInterpreter * );
395407# endif
396408#endif
409+ #if (PERL_REVISION == 5 ) && (PERL_VERSION >= 22 )
410+ static I32 (* Perl_xs_handshake )(const U32 , void * , const char * , ...);
411+ static void (* Perl_xs_boot_epilog )(pTHX_ const U32 );
412+ #endif
397413
398414#if (PERL_REVISION == 5 ) && (PERL_VERSION >= 14 )
399415# ifdef USE_ITHREADS
@@ -453,7 +469,9 @@ static struct {
453469 {"Perl_set_context" , (PERL_PROC * )& Perl_set_context },
454470#if (PERL_REVISION == 5 ) && (PERL_VERSION >= 14 )
455471 {"Perl_sv_2bool_flags" , (PERL_PROC * )& Perl_sv_2bool_flags },
472+ # if (PERL_REVISION == 5 ) && (PERL_VERSION < 22 )
456473 {"Perl_xs_apiversion_bootcheck" ,(PERL_PROC * )& Perl_xs_apiversion_bootcheck },
474+ # endif
457475#else
458476 {"Perl_sv_2bool" , (PERL_PROC * )& Perl_sv_2bool },
459477#endif
@@ -521,6 +539,10 @@ static struct {
521539 {"Perl_Iunitcheckav_ptr" , (PERL_PROC * )& Perl_Iunitcheckav_ptr },
522540# endif
523541#endif
542+ #if (PERL_REVISION == 5 ) && (PERL_VERSION >= 22 )
543+ {"Perl_xs_handshake" , (PERL_PROC * )& Perl_xs_handshake },
544+ {"Perl_xs_boot_epilog" , (PERL_PROC * )& Perl_xs_boot_epilog },
545+ #endif
524546#if (PERL_REVISION == 5 ) && (PERL_VERSION >= 14 )
525547# ifdef USE_ITHREADS
526548 {"PL_thr_key" , (PERL_PROC * )& dll_PL_thr_key },
0 commit comments