pcre wrapper compiles again
This commit is contained in:
parent
877bd93905
commit
6074a9c129
1 changed files with 8 additions and 6 deletions
|
|
@ -35,13 +35,15 @@
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
|
||||||
|
{.deadcodeElim: on.}
|
||||||
|
|
||||||
when not defined(pcreDll):
|
when not defined(pcreDll):
|
||||||
when hostOS == "windows":
|
when hostOS == "windows":
|
||||||
const pcreDll = "pcre.dll"
|
const pcreDll = "pcre.dll"
|
||||||
elif hostOS == "macosx":
|
elif hostOS == "macosx":
|
||||||
const pcreDll = "libpcre(.1|).dylib"
|
const pcreDll = "libpcre(.3|.1|).dylib"
|
||||||
else:
|
else:
|
||||||
const pcreDll = "libpcre.so(.1|)"
|
const pcreDll = "libpcre.so(.3|.1|)"
|
||||||
{.pragma: pcreImport, dynlib: pcreDll.}
|
{.pragma: pcreImport, dynlib: pcreDll.}
|
||||||
else:
|
else:
|
||||||
{.pragma: pcreImport, header: "<pcre.h>".}
|
{.pragma: pcreImport, header: "<pcre.h>".}
|
||||||
|
|
@ -246,10 +248,10 @@ type
|
||||||
study_data*: pointer ## Opaque data from pcre_study()
|
study_data*: pointer ## Opaque data from pcre_study()
|
||||||
match_limit*: int ## Maximum number of calls to match()
|
match_limit*: int ## Maximum number of calls to match()
|
||||||
callout_data*: pointer ## Data passed back in callouts
|
callout_data*: pointer ## Data passed back in callouts
|
||||||
tables*: ptr char ## Pointer to character tables
|
tables*: cstring ## Pointer to character tables
|
||||||
match_limit_recursion*: int ## Max recursive calls to match()
|
match_limit_recursion*: int ## Max recursive calls to match()
|
||||||
mark*: ptr ptr char ## For passing back a mark pointer
|
mark*: ptr cstring ## For passing back a mark pointer
|
||||||
executable_jit* = pointer ## Contains a pointer to a compiled jit code
|
executable_jit*: pointer ## Contains a pointer to a compiled jit code
|
||||||
|
|
||||||
|
|
||||||
# The structure for passing out data via the pcre_callout_function. We use a
|
# The structure for passing out data via the pcre_callout_function. We use a
|
||||||
|
|
@ -271,7 +273,7 @@ type
|
||||||
callout_data*: pointer ## Data passed in with the call
|
callout_data*: pointer ## Data passed in with the call
|
||||||
pattern_position*: cint ## Offset to next item in the pattern
|
pattern_position*: cint ## Offset to next item in the pattern
|
||||||
next_item_length*: cint ## Length of next item in the pattern
|
next_item_length*: cint ## Length of next item in the pattern
|
||||||
mark*: ptr char ## Pointer to current mark or NULL
|
mark*: cstring ## Pointer to current mark or NULL
|
||||||
|
|
||||||
# Indirection for store get and free functions. These can be set to
|
# Indirection for store get and free functions. These can be set to
|
||||||
#alternative malloc/free functions if required. Special ones are used in the
|
#alternative malloc/free functions if required. Special ones are used in the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue