summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-03-07 19:08:41 +0800
committerGitHub <noreply@github.com>2021-03-07 12:08:41 +0100
commit0e3ea1655441036aa13d95ca1c47d9d27e0dff62 (patch)
treefd565b78e6da93d5965ce9ed89276e5843a70607 /lib/system
parentb8c04bdb929f72ed8214122b255e88db9e713774 (diff)
downloadNim-0e3ea1655441036aa13d95ca1c47d9d27e0dff62.tar.gz
use lowercase --define switches (#17283)
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/arithm.nim2
-rw-r--r--lib/system/io.nim6
-rw-r--r--lib/system/syslocks.nim2
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/system/arithm.nim b/lib/system/arithm.nim
index 64caddce8..158f40177 100644
--- a/lib/system/arithm.nim
+++ b/lib/system/arithm.nim
@@ -155,7 +155,7 @@ proc absInt(a: int): int {.compilerproc, inline.} =
   raiseOverflow()
 
 const
-  asmVersion = defined(I386) and (defined(vcc) or defined(wcc) or
+  asmVersion = defined(i386) and (defined(vcc) or defined(wcc) or
                defined(dmc) or defined(gcc) or defined(llvm_gcc))
     # my Version of Borland C++Builder does not have
     # tasm32, which is needed for assembler blocks
diff --git a/lib/system/io.nim b/lib/system/io.nim
index 31768eb38..300e7ea3f 100644
--- a/lib/system/io.nim
+++ b/lib/system/io.nim
@@ -143,13 +143,13 @@ proc raiseEOF() {.noinline, noreturn.} =
 
 proc strerror(errnum: cint): cstring {.importc, header: "<string.h>".}
 
-when not defined(NimScript):
+when not defined(nimscript):
   var
     errno {.importc, header: "<errno.h>".}: cint ## error variable
     EINTR {.importc: "EINTR", header: "<errno.h>".}: cint
 
 proc checkErr(f: File) =
-  when not defined(NimScript):
+  when not defined(nimscript):
     if c_ferror(f) != 0:
       let msg = "errno: " & $errno & " `" & $strerror(errno) & "`"
       c_clearerr(f)
@@ -452,7 +452,7 @@ proc readLine*(f: File, line: var string): bool {.tags: [ReadIOEffect],
       # likely other io procs need this for correctness.
       fgetsSuccess = c_fgets(addr line[pos], sp.cint, f) != nil
       if fgetsSuccess: break
-      when not defined(NimScript):
+      when not defined(nimscript):
         if errno == EINTR:
           errno = 0
           c_clearerr(f)
diff --git a/lib/system/syslocks.nim b/lib/system/syslocks.nim
index 07fb9cb8a..51dbfd3a2 100644
--- a/lib/system/syslocks.nim
+++ b/lib/system/syslocks.nim
@@ -11,7 +11,7 @@
 
 {.push stackTrace: off.}
 
-when defined(Windows):
+when defined(windows):
   type
     Handle = int