diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2018-08-19 19:25:04 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-08-19 19:25:04 -0500 |
| commit | 864506afbc431ddb62fad36bda38361cfcfe9801 (patch) | |
| tree | 81dc736468326589544d6a40d543506c2f093737 | |
| parent | 02de68b36d10bf92560a2812c06211b5fdbe2343 (diff) | |
| download | nimgen-0.4.0.tar.gz nimgen-0.4.0.zip | |
Remove ropes dependencyv0.4.0
| -rw-r--r-- | src/nimgen/external.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nimgen/external.nim b/src/nimgen/external.nim index 5abc1c6..651ccf3 100644 --- a/src/nimgen/external.nim +++ b/src/nimgen/external.nim @@ -1,4 +1,4 @@ -import os, osproc, regex, ropes, streams, strutils +import os, osproc, regex, streams, strutils import globals @@ -111,7 +111,7 @@ proc runPreprocess*(file, ppflags, flags: string, inline: bool): string = # Include content only from file var - rdata = rope("") + rdata: seq[string] = @[] start = false sfile = file.sanitizePath @@ -131,9 +131,9 @@ proc runPreprocess*(file, ppflags, flags: string, inline: bool): string = line.multiReplace([("_Noreturn", ""), ("(())", ""), ("WINAPI", ""), ("__attribute__", ""), ("extern \"C\"", "")]) .replace(re"\(\([_a-z]+?\)\)", "") - .replace(re"\(\(__format__[\s]*\(__[gnu_]*printf__, [\d]+, [\d]+\)\)\);", ";") & "\n" + .replace(re"\(\(__format__[\s]*\(__[gnu_]*printf__, [\d]+, [\d]+\)\)\);", ";") ) - return $rdata + return rdata.join("\n") proc runCtags*(file: string): string = var |
