diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2020-04-02 03:48:09 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 08:48:09 +0200 |
commit | c1672617350ff1b0b2c6d352d026c87729a056f0 (patch) | |
tree | 950a606413dc78657c995b68320cde50128c6bf1 /lib | |
parent | 160d5fe589abd3878f56720bb764b82447e47b10 (diff) | |
download | Nim-c1672617350ff1b0b2c6d352d026c87729a056f0.tar.gz |
Deprecate PHP (#13838)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/gc_regions.nim | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/system/gc_regions.nim b/lib/system/gc_regions.nim index 38365469e..7dab50072 100644 --- a/lib/system/gc_regions.nim +++ b/lib/system/gc_regions.nim @@ -8,22 +8,7 @@ # "Stack GC" for embedded devices or ultra performance requirements. -when defined(nimphpext): - proc roundup(x, v: int): int {.inline.} = - result = (x + (v-1)) and not (v-1) - proc emalloc(size: int): pointer {.importc: "_emalloc".} - proc efree(mem: pointer) {.importc: "_efree".} - - proc osAllocPages(size: int): pointer {.inline.} = - emalloc(size) - - proc osTryAllocPages(size: int): pointer {.inline.} = - emalloc(size) - - proc osDeallocPages(p: pointer, size: int) {.inline.} = - efree(p) - -elif defined(useMalloc): +when defined(useMalloc): proc roundup(x, v: int): int {.inline.} = result = (x + (v-1)) and not (v-1) proc emalloc(size: int): pointer {.importc: "malloc", header: "<stdlib.h>".} |