Skip to content

Commit

Permalink
Configure the doubled pcres
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 10, 2023
1 parent 8870e5d commit 86cf765
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions project/thirdparty/pcre2-10.42-16/src/config.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#define PCRE2_CODE_UNIT_WIDTH 16
#define SUPPORT_PCRE2_16

/* src/config.h. Generated from config.h.in by configure. */
/* src/config.h.in. Generated from configure.ac by autoheader. */

Expand Down
3 changes: 3 additions & 0 deletions project/thirdparty/pcre2-10.42-8/src/config.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#define PCRE2_CODE_UNIT_WIDTH 8
#define SUPPORT_PCRE2_8

/* src/config.h. Generated from config.h.in by configure. */
/* src/config.h.in. Generated from configure.ac by autoheader. */

Expand Down
5 changes: 3 additions & 2 deletions src/hx/libs/regexp/RegExp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
#include <string.h>

//#define PCRE2_STATIC
//#define PCRE2_CODE_UNIT_WIDTH 0
#define PCRE2_CODE_UNIT_WIDTH 0

#include <pcre2.h>
//#include <pcre2.h>
#include "../../../../project/thirdparty/pcre2-10.42-8/src/pcre2.h"

#define PCRE(o) ((pcredata*)o.mPtr)

Expand Down

0 comments on commit 86cf765

Please sign in to comment.