Skip to content

Commit 69d1d64

Browse files
committed
fbdoc: Fix to work with current PCRE binding
The pcre_extra type isn't renamed to pcre_extra_ anymore; I'm not sure why it was in the old binding. There's a PCRE_EXTRA constant, but constants and types can have the same name in FB anyways.
1 parent 3af2d70 commit 69d1d64

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

doc/libfbdoc/CRegex.bas

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,11 @@
2525
#include once "CRegex.bi"
2626
#include once "pcre.bi"
2727

28-
''#print __FB_VER_MAJOR__
29-
''#print __FB_VER_MINOR__
30-
31-
'' compatibility hack due to pcre header change in 0.18.4
32-
#if(( __FB_VER_MAJOR__ <= 0 ) and ( __FB_VER_MINOR__ <= 17 ))
33-
#define pcre_extra_t pcre_extra
34-
#else
35-
#define pcre_extra_t pcre_extra_
36-
#endif
37-
3828
namespace fb
3929

4030
type CRegexCtx_
4131
as pcre ptr reg
42-
as pcre_extra_t ptr extra
32+
as pcre_extra ptr extra
4333
as integer ptr vectb
4434
as zstring ptr subject
4535
as integer sublen

0 commit comments

Comments
 (0)