diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-10-30 22:08:41 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-10-30 22:08:41 +0000 |
commit | 1593ad57168f1432573f8effd44b7610e9f8f962 (patch) | |
tree | 24105a20e2e6c23c574462b348b603edff9dcd34 /regexp.h | |
parent | daba3364ed9f39ba44b28575c032f6db52d47881 (diff) | |
download | perl-1593ad57168f1432573f8effd44b7610e9f8f962.tar.gz |
SvPV() does not take a const SV*, which means that the pattern argument
to Perl_re_compile() can't be const, which means that the pattern
argument to Perl_pregcomp() can't be const, as can't the argument in
the function in the regexp engine structure.
It's a shame that no-one spotted this earlier.
(Again) I may have rendered the documentation inaccurate.
p4raw-id: //depot/perl@34672
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -129,7 +129,7 @@ typedef struct re_scream_pos_data_s * Any regex engine implementation must be able to build one of these. */ typedef struct regexp_engine { - REGEXP* (*comp) (pTHX_ const SV * const pattern, U32 flags); + REGEXP* (*comp) (pTHX_ SV * const pattern, U32 flags); I32 (*exec) (pTHX_ REGEXP * const rx, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, void* data, U32 flags); |