diff options
author | Miran <narimiran@disroot.org> | 2020-01-16 14:14:03 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-01-16 14:14:03 +0100 |
commit | 352232e62dea88191339af3aaa943cb93fb4db02 (patch) | |
tree | 725293f5344928422115a1cf358c8f3b2cf0d1b5 /lib/system | |
parent | 54bfd69a27db6015e4eb7ed0b57b01b7924be2f6 (diff) | |
download | Nim-352232e62dea88191339af3aaa943cb93fb4db02.tar.gz |
style fix: change 'JS' to 'js' to make it consistent (#13168)
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/arithmetics.nim | 2 | ||||
-rw-r--r-- | lib/system/comparisons.nim | 2 | ||||
-rw-r--r-- | lib/system/gc_interface.nim | 4 | ||||
-rw-r--r-- | lib/system/memalloc.nim | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/system/arithmetics.nim b/lib/system/arithmetics.nim index f9f9b35d4..ba9ade192 100644 --- a/lib/system/arithmetics.nim +++ b/lib/system/arithmetics.nim @@ -105,7 +105,7 @@ when defined(nimNoZeroExtendMagic): ## **Deprecated since version 0.19.9**: Use unsigned integers instead. cast[int32](x) -elif not defined(JS): +elif not defined(js): proc ze*(x: int8): int {.magic: "Ze8ToI", noSideEffect, deprecated.} ## zero extends a smaller integer type to ``int``. This treats `x` as ## unsigned. diff --git a/lib/system/comparisons.nim b/lib/system/comparisons.nim index ab140c938..787820989 100644 --- a/lib/system/comparisons.nim +++ b/lib/system/comparisons.nim @@ -283,7 +283,7 @@ proc `==`*[T](x, y: seq[T]): bool {.noSideEffect.} = if x.len == 0 and y.len == 0: return true else: - when not defined(JS): + when not defined(js): proc seqToPtr[T](x: seq[T]): pointer {.inline, noSideEffect.} = when defined(nimSeqsV2): result = cast[NimSeqV2[T]](x).p diff --git a/lib/system/gc_interface.nim b/lib/system/gc_interface.nim index 5f27b432d..9183e6d48 100644 --- a/lib/system/gc_interface.nim +++ b/lib/system/gc_interface.nim @@ -13,7 +13,7 @@ when hasAlloc: gcOptimizeTime, ## optimize for speed gcOptimizeSpace ## optimize for memory footprint -when hasAlloc and not defined(JS) and not usesDestructors: +when hasAlloc and not defined(js) and not usesDestructors: proc GC_disable*() {.rtl, inl, benign.} ## Disables the GC. If called `n` times, `n` calls to `GC_enable` ## are needed to reactivate the GC. @@ -58,7 +58,7 @@ when hasAlloc and not defined(JS) and not usesDestructors: ## Expands operating GC stack range to `theStackBottom`. Does nothing ## if current stack bottom is already lower than `theStackBottom`. -when hasAlloc and defined(JS): +when hasAlloc and defined(js): template GC_disable* = {.warning: "GC_disable is a no-op in JavaScript".} diff --git a/lib/system/memalloc.nim b/lib/system/memalloc.nim index 1e41123f0..b48a6d70a 100644 --- a/lib/system/memalloc.nim +++ b/lib/system/memalloc.nim @@ -229,7 +229,7 @@ when hasAlloc: ## Returns the number of bytes that are owned by the process. -when defined(JS): +when defined(js): # Stubs: proc getOccupiedMem(): int = return -1 proc getFreeMem(): int = return -1 |