3 * Copyright 1999-2003 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
12 * From Apache mod_perl: test for Perl version.
15 #if defined(pTHX_) || (PERL_REVISION > 5 || (PERL_REVISION == 5 && PERL_VERSION >= 6))
19 #define EVAL_BUF_SIZE 500
21 extern ldap_pvt_thread_mutex_t perl_interpreter_mutex;
24 /* We should be using the PL_errgv, I think */
25 /* All the old style variables are prefixed with PL_ now */
26 # define errgv PL_errgv
30 #ifdef HAVE_WIN32_ASPERL
31 /* pTHX is needed often now */
32 # define PERL_INTERPRETER my_perl
33 # define PERL_BACK_XS_INIT_PARAMS pTHX
34 # define PERL_BACK_BOOT_DYNALOADER_PARAMS pTHX, CV *cv
36 # define PERL_INTERPRETER perl_interpreter
37 # define PERL_BACK_XS_INIT_PARAMS void
38 # define PERL_BACK_BOOT_DYNALOADER_PARAMS CV *cv
41 extern PerlInterpreter *PERL_INTERPRETER;
44 typedef struct perl_backend_instance {
47 int pb_filter_search_results;