Skip to content

Commit c5ad23c

Browse files
authored
Remove CUSTOM_SUBJECT_PTR, now that I have tested and found it does not work
1 parent c24eb7f commit c5ad23c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/pcre2_internal.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,19 +175,6 @@ property values. This must follow the setting of PCRE2_EXP_DECL above. */
175175
#include "pcre2.h"
176176
#include "pcre2_ucp.h"
177177

178-
/* When PCRE2 is compiled as a C++ library, the subject pointer can be replaced
179-
with a custom type. This makes it possible, for example, to allow pcre2_match()
180-
to process subject strings that are discontinuous by using a smart pointer
181-
class. It must always be possible to inspect all of the subject string in
182-
pcre2_match() because of the way it backtracks. */
183-
184-
/* WARNING: This is as yet untested for PCRE2. */
185-
186-
#ifdef CUSTOM_SUBJECT_PTR
187-
#undef PCRE2_SPTR
188-
#define PCRE2_SPTR CUSTOM_SUBJECT_PTR
189-
#endif
190-
191178
/* When checking for integer overflow, we need to handle large integers.
192179
If a 64-bit integer type is available, we can use that.
193180
Otherwise we have to cast to double, which of course requires floating point

0 commit comments

Comments
 (0)