From 1342798cc74bdaa59a8b2806dcc89df40dddb5c6 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 19 Feb 2013 23:32:32 +0100 Subject: [PATCH] small cleanups --- lib/pure/streams.nim | 4 +--- lib/system.nim | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/pure/streams.nim b/lib/pure/streams.nim index 232205ebd..581db3163 100755 --- a/lib/pure/streams.nim +++ b/lib/pure/streams.nim @@ -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) diff --git a/lib/system.nim b/lib/system.nim index a17b2c97d..5f9a24ba9 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -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]