mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
small cleanups
This commit is contained in:
@@ -180,9 +180,7 @@ proc readLine*(s: PStream): TaintedString =
|
||||
if c == '\c':
|
||||
c = readChar(s)
|
||||
break
|
||||
if c == '\b':
|
||||
result.string.setLen(result.len - 1)
|
||||
elif c == '\L' or c == '\0':
|
||||
if c == '\L' or c == '\0':
|
||||
break
|
||||
else:
|
||||
result.string.add(c)
|
||||
|
||||
@@ -186,9 +186,9 @@ when not defined(niminheritable):
|
||||
|
||||
when not defined(JS) and not defined(NimrodVM):
|
||||
type
|
||||
TGenericSeq* {.compilerproc, pure, inheritable.} = object
|
||||
TGenericSeq {.compilerproc, pure, inheritable.} = object
|
||||
len, reserved: int
|
||||
PGenericSeq* {.exportc.} = ptr TGenericSeq
|
||||
PGenericSeq {.exportc.} = ptr TGenericSeq
|
||||
# len and space without counting the terminating zero:
|
||||
NimStringDesc {.compilerproc, final.} = object of TGenericSeq
|
||||
data: array[0..100_000_000, char]
|
||||
|
||||
Reference in New Issue
Block a user