mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-09 06:23:25 +00:00
Remove obsolete code from osalloc (#13158)
This commit is contained in:
committed by
Andreas Rumpf
parent
d5f011d9e6
commit
54bfd69a27
@@ -296,15 +296,5 @@ elif hostOS == "standalone" or defined(StandaloneHeapSize):
|
||||
if bumpPointer-size == cast[int](p):
|
||||
dec bumpPointer, size
|
||||
|
||||
elif hostOS == "any":
|
||||
proc osAllocPages(size: int): pointer {.inline.} =
|
||||
result = c_malloc(size.csize_t)
|
||||
|
||||
proc osTryAllocPages(size: int): pointer {.inline.} =
|
||||
result = c_malloc(size.csize_t)
|
||||
|
||||
proc osDeallocPages(p: pointer, size: int) {.inline.} =
|
||||
c_free(p)
|
||||
|
||||
else:
|
||||
{.error: "Port memory manager to your platform".}
|
||||
|
||||
Reference in New Issue
Block a user