small cleanups

This commit is contained in:
Araq
2013-02-19 23:32:32 +01:00
parent 4fc575bc26
commit 1342798cc7
2 changed files with 3 additions and 5 deletions

View File

@@ -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)

View File

@@ -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]