Fix #202 - implement noHeader

This commit is contained in:
Ganesh Viswanathan 2020-05-09 02:34:59 -05:00
commit 701a8793c2
15 changed files with 583 additions and 593 deletions

View file

@ -28,6 +28,8 @@ cPlugin:
proc onSymbol*(sym: var Symbol) {.exportc, dynlib.} =
sym.name = sym.name.replace("pcre_", "")
if sym.name.startsWith("pcre16_") or sym.name.startsWith("pcre32_"):
sym.name = ""
const FLAGS {.strdefine.} = ""
cImport(pcreH, dynlib="dynpcre", flags="--mode=c " & FLAGS)