diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-09 05:37:48 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-09 05:37:48 +0000 |
commit | 15e52e56ffc1b4b0632038d47561373c5ca610c4 (patch) | |
tree | 15aaf7ccef22d054555bbacbab3696f48ba8aab3 /perl.h | |
parent | d06ea78cdb5afedf2e1a85ff54e3bfc5c519b3c5 (diff) | |
download | perl-15e52e56ffc1b4b0632038d47561373c5ca610c4.tar.gz |
get it building again on win32
p4raw-id: //depot/perl@1394
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -112,6 +112,8 @@ class CPerlObj; #define _PERL_OBJECT_THIS ,this #define PERL_OBJECT_THIS_ this, #define CALLRUNOPS (this->*runops) +#define CALLREGCOMP (this->*regcompp) +#define CALLREGEXEC (this->*regexecp) #else /* !PERL_OBJECT */ @@ -126,6 +128,8 @@ class CPerlObj; #define _PERL_OBJECT_THIS #define PERL_OBJECT_THIS_ #define CALLRUNOPS runops +#define CALLREGCOMP (*regcompp) +#define CALLREGEXEC (*regexecp) #endif /* PERL_OBJECT */ @@ -1833,11 +1837,24 @@ typedef enum { #define RsRECORD(sv) (SvROK(sv) && (SvIV(SvRV(sv)) > 0)) /* Enable variables which are pointers to functions */ +#ifdef PERL_OBJECT +typedef regexp*(CPerlObj::*regcomp_t) _((char* exp, char* xend, PMOP* pm)); +typedef I32 (CPerlObj::*regexec_t) _((regexp* prog, char* stringarg, + char* strend, char* strbeg, + I32 minend, SV* screamer, void* data, + U32 flags)); +#else typedef regexp*(*regcomp_t) _((char* exp, char* xend, PMOP* pm)); typedef I32 (*regexec_t) _((regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, void* data, U32 flags)); +EXT regexp* pregcomp _((char* exp, char* xend, PMOP* pm)); +EXT I32 regexec_flags _((regexp* prog, char* stringarg, char* strend, + char* strbeg, I32 minend, SV* screamer, + void* data, U32 flags)); +#endif + /* Set up PERLVAR macros for populating structs */ #define PERLVAR(var,type) type var; #define PERLVARI(var,type,init) type var; |