diff options
author | Araq <rumpf_a@web.de> | 2013-02-19 23:32:32 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-02-19 23:32:32 +0100 |
commit | 1342798cc74bdaa59a8b2806dcc89df40dddb5c6 (patch) | |
tree | 283751a94736ca91ecf145ba854791462cc260e5 | |
parent | 4fc575bc26b4d521f1092572fe93c2bebfe12f7b (diff) | |
download | Nim-1342798cc74bdaa59a8b2806dcc89df40dddb5c6.tar.gz |
small cleanups
-rwxr-xr-x | lib/pure/streams.nim | 4 | ||||
-rwxr-xr-x | 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] |