summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-03-01 16:23:25 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-03-01 16:23:25 +0100
commita6c7972086d1fe96413cf7467246868bd9412f8a (patch)
tree16c9116abb78b107d278c1117256eb12a07fee83 /lib
parentce1047f2ae07430c80eeeaa0b65eb0a32d8720a3 (diff)
downloadNim-a6c7972086d1fe96413cf7467246868bd9412f8a.tar.gz
make travis green again
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/parseopt.nim36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/pure/parseopt.nim b/lib/pure/parseopt.nim
index a5ab9899e..cf275a88a 100644
--- a/lib/pure/parseopt.nim
+++ b/lib/pure/parseopt.nim
@@ -78,7 +78,7 @@ when declared(os.paramCount):
   # we cannot provide this for NimRtl creation on Posix, because we can't
   # access the command line arguments then!
 
-  proc initOptParser*(cmdline = ""): OptParser {.rtl, extern: "npo$1String".} =
+  proc initOptParser*(cmdline = ""): OptParser =
     ## inits the option parser. If ``cmdline == ""``, the real command line
     ## (as provided by the ``OS`` module) is taken.
     result.pos = 0
@@ -94,23 +94,23 @@ when declared(os.paramCount):
     result.key = TaintedString""
     result.val = TaintedString""
 
-proc initOptParser*(cmdline: seq[string]): OptParser {.rtl, extern: "npo$1Seq".} =
-  ## inits the option parser. If ``cmdline.len == 0``, the real command line
-  ## (as provided by the ``OS`` module) is taken.
-  result.pos = 0
-  result.inShortState = false
-  result.cmd = ""
-  if cmdline.len != 0:
-    for i in 0..<cmdline.len:
-      result.cmd.add quote(cmdline[i])
-      result.cmd.add ' '
-  else:
-    for i in countup(1, paramCount()):
-      result.cmd.add quote(paramStr(i).string)
-      result.cmd.add ' '
-  result.kind = cmdEnd
-  result.key = TaintedString""
-  result.val = TaintedString""
+  proc initOptParser*(cmdline: seq[string]): OptParser =
+    ## inits the option parser. If ``cmdline.len == 0``, the real command line
+    ## (as provided by the ``OS`` module) is taken.
+    result.pos = 0
+    result.inShortState = false
+    result.cmd = ""
+    if cmdline.len != 0:
+      for i in 0..<cmdline.len:
+        result.cmd.add quote(cmdline[i])
+        result.cmd.add ' '
+    else:
+      for i in countup(1, paramCount()):
+        result.cmd.add quote(paramStr(i).string)
+        result.cmd.add ' '
+    result.kind = cmdEnd
+    result.key = TaintedString""
+    result.val = TaintedString""
 
 proc handleShortOption(p: var OptParser) =
   var i = p.pos