1 |
root |
1.1 |
#include "EXTERN.h" |
2 |
|
|
#include "perl.h" |
3 |
|
|
#include "XSUB.h" |
4 |
|
|
|
5 |
root |
1.2 |
#include <string.h> |
6 |
|
|
|
7 |
|
|
// a compiler supporting C99 is required |
8 |
|
|
|
9 |
root |
1.1 |
/* try to be compatible with older perls */ |
10 |
|
|
/* SvPV_nolen() macro first defined in 5.005_55 */ |
11 |
|
|
/* this is slow, not threadsafe, but works */ |
12 |
|
|
#include "patchlevel.h" |
13 |
|
|
#if (PATCHLEVEL == 4) || ((PATCHLEVEL == 5) && (SUBVERSION < 55)) |
14 |
|
|
static STRLEN nolen_na; |
15 |
|
|
# define SvPV_nolen(sv) SvPV ((sv), nolen_na) |
16 |
|
|
#endif |
17 |
|
|
#if PATCHLEVEL < 6 |
18 |
|
|
# define call_sv perl_call_sv |
19 |
|
|
#endif |
20 |
|
|
|
21 |
root |
1.2 |
MODULE = XML::DB PACKAGE = XML::DB::Key |
22 |
|
|
|
23 |
|
|
PROTOTYPES: ENABLE |
24 |
|
|
|
25 |
root |
1.1 |
|