diff options
author | Yves Orton <demerphq@gmail.com> | 2006-09-29 14:41:26 +0200 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2006-09-29 12:29:24 +0000 |
commit | f9f4320a413e57e41ac9bf0d94d8c4e8dbe71ec8 (patch) | |
tree | 28f2158bf3db85ad65e1be291366af1df07fb5b6 /regcomp.h | |
parent | dfeee9b153e7ebbeaa1e263dad19a3e5a819bacd (diff) | |
download | perl-f9f4320a413e57e41ac9bf0d94d8c4e8dbe71ec8.tar.gz |
Re: [PATCH] Add hook for re_dup() into regex engine as reg_dupe (make re pluggable under threads)
Message-ID: <9b18b3110609290341p11767110sec20a6fee2038a00@mail.gmail.com>
p4raw-id: //depot/perl@28900
Diffstat (limited to 'regcomp.h')
-rw-r--r-- | regcomp.h | 23 |
1 files changed, 18 insertions, 5 deletions
@@ -364,13 +364,26 @@ EXTCONST U8 PL_simple[] = { }; #endif +#ifndef PLUGGABLE_RE_EXTENSION +#ifndef DOINIT +EXTCONST regexp_engine PL_core_reg_engine; +#else /* DOINIT */ +EXTCONST regexp_engine PL_core_reg_engine = { + Perl_pregcomp, + Perl_regexec_flags, + Perl_re_intuit_start, + Perl_re_intuit_string, + Perl_pregfree, +#if defined(USE_ITHREADS) + Perl_regdupe +#endif +}; +#endif /* DOINIT */ +#endif /* PLUGGABLE_RE_EXTENSION */ + + END_EXTERN_C -typedef struct re_scream_pos_data_s -{ - char **scream_olds; /* match pos */ - I32 *scream_pos; /* Internal iterator of scream. */ -} re_scream_pos_data; /* .what is a character array with one character for each member of .data * The character describes the function of the corresponding .data item: |