Minor bugfixes
This commit is contained in:
parent
fec0e49fac
commit
6d0abefe8a
4 changed files with 11 additions and 6 deletions
|
|
@ -36,6 +36,8 @@ To see examples of nimgen in action check out the following wrappers:-
|
|||
* download ZIP with headers and binary
|
||||
|
||||
* Compile C code into binary
|
||||
* [nimbigwig](https://github.com/genotrance/nimbigwig) - libbigWig wrapper
|
||||
* git checkout
|
||||
* [nimfuzz](https://github.com/genotrance/nimfuzz) - fts_fuzzy_match wrapper
|
||||
* download header file
|
||||
* [nimkerberos](https://github.com/genotrance/nimkerberos) - WinKerberos wrapper
|
||||
|
|
|
|||
|
|
@ -283,7 +283,8 @@ proc getIncls(file: string, inline=false): seq[string] =
|
|||
for f in content.findIter(re"(?m)^\s*#\s*include\s+(.*?)$"):
|
||||
var inc = f.captures[0].strip()
|
||||
if ((QUOTES and inc.contains("\"")) or (FILTER != "" and FILTER in inc)) and (not exclude(inc)):
|
||||
result.add(inc.replace(re"""[<>"]""", "").strip())
|
||||
result.add(
|
||||
inc.replace(re"""[<>"]""", "").replace(re"\/[\*\/].*$", "").strip())
|
||||
|
||||
result = result.deduplicate()
|
||||
|
||||
|
|
@ -337,6 +338,8 @@ proc runPreprocess(file, ppflags, flags: string, inline: bool): string =
|
|||
start = false
|
||||
if sfile in line.replace("\\", "/").replace("//", "/"):
|
||||
start = true
|
||||
if not ("\\" in line) and not ("/" in line) and extractFilename(sfile) in line:
|
||||
start = true
|
||||
else:
|
||||
if start:
|
||||
rdata.add(
|
||||
|
|
@ -641,9 +644,9 @@ proc runCfg(cfg: string) =
|
|||
let (key, val) = getKey(wild)
|
||||
if val == true:
|
||||
if key == "wildcard":
|
||||
wildcard = CONFIG["n.wildcard"][key]
|
||||
wildcard = CONFIG["n.wildcard"][wild]
|
||||
else:
|
||||
WILDCARDS.setSectionKey(wildcard, key, CONFIG["n.wildcard"][key])
|
||||
WILDCARDS.setSectionKey(wildcard, wild, CONFIG["n.wildcard"][wild])
|
||||
|
||||
for file in CONFIG.keys():
|
||||
if file in @["n.global", "n.include", "n.exclude", "n.prepare", "n.wildcard"]:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Package
|
||||
|
||||
version = "0.1.4"
|
||||
version = "0.1.5"
|
||||
author = "genotrance"
|
||||
description = "c2nim helper to simplify and automate the wrapping of C libraries"
|
||||
license = "MIT"
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@ import distros
|
|||
import ospaths
|
||||
import strutils
|
||||
|
||||
var comps = @["libsvm", "nimbass", "nimfuzz", "nimrax", "nimssl", "nimssh2"]
|
||||
var comps = @["libsvm", "nimbass", "nimbigwig", "nimfuzz", "nimrax", "nimssl", "nimssh2"]
|
||||
if detectOs(Windows):
|
||||
comps.add("nimkerberos")
|
||||
|
||||
for comp in comps:
|
||||
if dirExists(".."/comp):
|
||||
exec "nimble uninstall -y " & comp
|
||||
exec "nimble uninstall -y " & comp, "", ""
|
||||
withDir(".."/comp):
|
||||
rmDir(comp)
|
||||
exec "nimble install -y"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue