mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
[bugfix] openssl styleCheck fix: consistent var naming (#11750)
(cherry picked from commit 3f7142fcfd)
This commit is contained in:
@@ -427,11 +427,11 @@ when not useWinVersion and not defined(macosx) and not defined(android) and not
|
||||
dynlib: DLLUtilName, importc.}
|
||||
|
||||
proc allocWrapper(size: int): pointer {.cdecl.} = allocShared(size)
|
||||
proc reallocWrapper(p: pointer; newsize: int): pointer {.cdecl.} =
|
||||
proc reallocWrapper(p: pointer; newSize: int): pointer {.cdecl.} =
|
||||
if p == nil:
|
||||
if newSize > 0: result = allocShared(newsize)
|
||||
elif newsize == 0: deallocShared(p)
|
||||
else: result = reallocShared(p, newsize)
|
||||
if newSize > 0: result = allocShared(newSize)
|
||||
elif newSize == 0: deallocShared(p)
|
||||
else: result = reallocShared(p, newSize)
|
||||
proc deallocWrapper(p: pointer) {.cdecl.} =
|
||||
if p != nil: deallocShared(p)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user