summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-03-27 19:59:31 +0100
committerAraq <rumpf_a@web.de>2014-03-27 19:59:31 +0100
commitde5d18188fd6cba580c5d80f1787a2c9dde9fc71 (patch)
tree3787b210fe3025448f4df5fc6116edd1b33723e8
parent76ef7529575d9cff2cb97117fe9b000f2af928bd (diff)
downloadNim-de5d18188fd6cba580c5d80f1787a2c9dde9fc71.tar.gz
ENDB: got rid of deprecated 'nil' stmt
-rw-r--r--lib/system/endb.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/system/endb.nim b/lib/system/endb.nim
index 2d6a25824..74d3c37ac 100644
--- a/lib/system/endb.nim
+++ b/lib/system/endb.nim
@@ -179,7 +179,7 @@ proc scanAndAppendWord(src: cstring, a: var TStaticStr, start: int): int =
   while True:
     case src[result]
     of 'a'..'z', '0'..'9': add(a, src[result])
-    of '_': nil # just skip it
+    of '_': discard # just skip it
     of 'A'..'Z': add(a, chr(ord(src[result]) - ord('A') + ord('a')))
     else: break
     inc(result)
@@ -203,7 +203,7 @@ proc scanNumber(src: cstring, a: var int, start: int): int =
   while true:
     case src[result]
     of '0'..'9': a = a * 10 + ord(src[result]) - ord('0')
-    of '_': nil # skip underscores (nice for long line numbers)
+    of '_': discard # skip underscores (nice for long line numbers)
     else: break
     inc(result)
 
@@ -524,7 +524,7 @@ proc lineHookImpl() {.nimcall.} =
   of dbBreakpoints:
     # debugger is only interested in breakpoints
     checkForBreakpoint()
-  else: nil
+  else: discard
 
 proc watchpointHookImpl(name: cstring) {.nimcall.} =
   dbgWriteStackTrace(framePtr)