summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-04-17 02:14:09 -0700
committerGitHub <noreply@github.com>2021-04-17 11:14:09 +0200
commit7e94420847d2d18347410099e97195ddebe8b85f (patch)
tree667576cbc4d9f7adea5162a256856222b983c6b4 /lib/system
parent8e474fbb57c2f7b58a840b5b30230c2267633c8e (diff)
downloadNim-7e94420847d2d18347410099e97195ddebe8b85f.tar.gz
cString => cSourceString; tyCString => tyCstring so that error msgs show cstring, not cString (#17744)
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/assign.nim2
-rw-r--r--lib/system/hti.nim2
-rw-r--r--lib/system/repr.nim2
-rw-r--r--lib/system/reprjs.nim2
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/system/assign.nim b/lib/system/assign.nim
index faf16fc90..20b854107 100644
--- a/lib/system/assign.nim
+++ b/lib/system/assign.nim
@@ -167,7 +167,7 @@ when false:
     of tyPointer: k = "range"
     of tyOpenArray: k = "openarray"
     of tyString: k = "string"
-    of tyCString: k = "cstring"
+    of tyCstring: k = "cstring"
     of tyInt: k = "int"
     of tyInt32: k = "int32"
     else: k = "other"
diff --git a/lib/system/hti.nim b/lib/system/hti.nim
index 3dbcd7615..9acaae88b 100644
--- a/lib/system/hti.nim
+++ b/lib/system/hti.nim
@@ -40,7 +40,7 @@ type
     tyPointer,
     tyOpenArray,
     tyString,
-    tyCString,
+    tyCstring,
     tyForward,
     tyInt,
     tyInt8,
diff --git a/lib/system/repr.nim b/lib/system/repr.nim
index 7424500eb..020c2281f 100644
--- a/lib/system/repr.nim
+++ b/lib/system/repr.nim
@@ -281,7 +281,7 @@ when not defined(useNimRtl):
     of tyString:
       let sp = cast[ptr string](p)
       reprStrAux(result, sp[].cstring, sp[].len)
-    of tyCString:
+    of tyCstring:
       let cs = cast[ptr cstring](p)[]
       if cs.isNil: add result, "nil"
       else: reprStrAux(result, cs, cs.len)
diff --git a/lib/system/reprjs.nim b/lib/system/reprjs.nim
index 36972024a..cdc3403f8 100644
--- a/lib/system/reprjs.nim
+++ b/lib/system/reprjs.nim
@@ -200,7 +200,7 @@ proc reprAux(result: var string, p: pointer, typ: PNimType,
     var fp: int
     {. emit: "`fp` = `p`;\n" .}
     add(result, reprStr(cast[string](p)))
-  of tyCString:
+  of tyCstring:
     var fp: cstring
     {. emit: "`fp` = `p`;\n" .}
     if fp.isNil: