1 | #include "EXTERN.h" | 1 | #include "EXTERN.h" |
---|---|---|---|
2 | #include "perl.h" | 2 | #include "perl.h" |
3 | #include "XSUB.h" | 3 | #include "XSUB.h" |
4 | |||
5 | #if PERL_VERSION < 7 | ||
6 | # define is_utf8_string(s,l) (croak ("utf8_valid requires perl 5.7 or higher"), 0) | ||
7 | #endif | ||
8 | 4 | ||
9 | #define RETCOPY(sv) \ | 5 | #define RETCOPY(sv) \ |
10 | if (GIMME_V != G_VOID) \ | 6 | if (GIMME_V != G_VOID) \ |
11 | { \ | 7 | { \ |
12 | dXSTARG; \ | 8 | dXSTARG; \ |
… | … | ||
15 | PUSHs (TARG); \ | 11 | PUSHs (TARG); \ |
16 | } | 12 | } |
17 | 13 | ||
18 | MODULE = Convert::Scalar PACKAGE = Convert::Scalar | 14 | MODULE = Convert::Scalar PACKAGE = Convert::Scalar |
19 | 15 | ||
20 | int | 16 | bool |
21 | utf8(scalar,mode=0) | 17 | utf8(scalar,mode=0) |
22 | SV * scalar | 18 | SV * scalar |
23 | SV * mode | 19 | SV * mode |
24 | PROTOTYPE: $;$ | 20 | PROTOTYPE: $;$ |
25 | CODE: | 21 | CODE: |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |