Permalink
Browse files

Resolve pcre linking failures

  • Loading branch information...
1 parent a30ef3e commit 88dc810c85337ad102de9c7ccd800ea1714c3f06 @tea tea committed Oct 23, 2010
Showing with 14 additions and 1 deletion.
  1. +1 −1 src/cx_pcre_internal.h
  2. +13 −0 src/cx_pcre_tables.cpp
View
@@ -1704,7 +1704,7 @@ sense, but are not part of the PCRE public API. */
extern BOOL _pcre_is_newline(USPTR, int, USPTR,
int *, BOOL);
-extern int _pcre_ord2utf8(int, uschar *);
+PCRE_EXP_DECL int _pcre_ord2utf8(int, uschar *);
extern real_pcre *_pcre_try_flipped(const real_pcre *, real_pcre *,
const pcre_study_data *, pcre_study_data *);
extern int _pcre_valid_utf8(USPTR, int);
View
@@ -87,6 +87,19 @@ const uschar _pcre_utf8_table4[] = {
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5 };
+/* Table to translate from particular type value to the general value. */
+
+const int _pcre_ucp_gentype[] = {
+ ucp_C, ucp_C, ucp_C, ucp_C, ucp_C, /* Cc, Cf, Cn, Co, Cs */
+ ucp_L, ucp_L, ucp_L, ucp_L, ucp_L, /* Ll, Lu, Lm, Lo, Lt */
+ ucp_M, ucp_M, ucp_M, /* Mc, Me, Mn */
+ ucp_N, ucp_N, ucp_N, /* Nd, Nl, No */
+ ucp_P, ucp_P, ucp_P, ucp_P, ucp_P, /* Pc, Pd, Pe, Pf, Pi */
+ ucp_P, ucp_P, /* Ps, Po */
+ ucp_S, ucp_S, ucp_S, ucp_S, /* Sc, Sk, Sm, So */
+ ucp_Z, ucp_Z, ucp_Z /* Zl, Zp, Zs */
+};
+
/* The pcre_utt[] table below translates Unicode property names into type and
code values. It is searched by binary chop, so must be in collating sequence of
name. Originally, the table contained pointers to the name strings in the first

0 comments on commit 88dc810

Please sign in to comment.