diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-03-31 15:50:05 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-03-31 15:50:05 +0000 |
commit | d7b3331898f84d163479fe03eff5bc0b654de391 (patch) | |
tree | 527393ed1b91642e63d682eb4229740bf4bf356f /regexp.h | |
parent | 85675c4c3c202eac297944e0d68db3b7fe625246 (diff) | |
download | perl-d7b3331898f84d163479fe03eff5bc0b654de391.tar.gz |
precomp in struct regexp can be const char *.
p4raw-id: //depot/perl@30812
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -89,8 +89,9 @@ typedef struct regexp { /* Information about the match that isn't often used */ - char *precomp; /* pre-compilation regular expression */ + const char *precomp; /* pre-compilation regular expression */ I32 prelen; /* length of precomp */ + /* wrapped can't be const char*, as it is returned by sv_2pv_flags */ char *wrapped; /* wrapped version of the pattern */ I32 wraplen; /* length of wrapped */ I32 seen_evals; /* number of eval groups in the pattern - for security checks */ |