mirror of
https://github.com/logos-storage/nim-leopard.git
synced 2026-01-04 06:33:09 +00:00
enables stylecheck
This commit is contained in:
parent
ae043fd262
commit
e5e882323c
@ -1,3 +1,5 @@
|
|||||||
|
--styleCheck:usages
|
||||||
|
--styleCheck:error
|
||||||
--threads:on
|
--threads:on
|
||||||
--tlsEmulation:off
|
--tlsEmulation:off
|
||||||
# begin Nimble config (version 1)
|
# begin Nimble config (version 1)
|
||||||
|
|||||||
@ -143,7 +143,7 @@ func decode*(
|
|||||||
parityPtr[i] = nil
|
parityPtr[i] = nil
|
||||||
|
|
||||||
let
|
let
|
||||||
res = leo_decode(
|
res = leoDecode(
|
||||||
self.bufSize.culonglong,
|
self.bufSize.culonglong,
|
||||||
self.buffers.cuint,
|
self.buffers.cuint,
|
||||||
self.parity.cuint,
|
self.parity.cuint,
|
||||||
@ -218,7 +218,7 @@ proc init[TT: Leo](
|
|||||||
# concurrently instantiate the library twice, and
|
# concurrently instantiate the library twice, and
|
||||||
# might end up with two distinct versions - not a big
|
# might end up with two distinct versions - not a big
|
||||||
# deal but will defeat the purpose of this `once` block
|
# deal but will defeat the purpose of this `once` block
|
||||||
if (let res = leoinit(); res.ord != LeopardSuccess.ord):
|
if (let res = leoInit(); res.ord != LeopardSuccess.ord):
|
||||||
return err(leoResultString(res.LeopardResult))
|
return err(leoResultString(res.LeopardResult))
|
||||||
|
|
||||||
var
|
var
|
||||||
|
|||||||
@ -144,8 +144,8 @@ static:
|
|||||||
discard gorge "rm -rf " & buildDir
|
discard gorge "rm -rf " & buildDir
|
||||||
raise (ref Defect)(msg: "Failed to build Leopard-RS")
|
raise (ref Defect)(msg: "Failed to build Leopard-RS")
|
||||||
|
|
||||||
{.passC: LeopardCompilerFlags & " " & LeopardExtraCompilerFlags.}
|
{.passc: LeopardCompilerFlags & " " & LeopardExtraCompilerFlags.}
|
||||||
{.passL: LeopardLinkerFlags & " " & LeopardExtraLinkerFlags.}
|
{.passl: LeopardLinkerFlags & " " & LeopardExtraLinkerFlags.}
|
||||||
|
|
||||||
{.pragma: leo, cdecl, header: LeopardHeader.}
|
{.pragma: leo, cdecl, header: LeopardHeader.}
|
||||||
|
|
||||||
@ -240,7 +240,7 @@ proc leoEncode*(
|
|||||||
##
|
##
|
||||||
## leo_decode_work_count()
|
## leo_decode_work_count()
|
||||||
##
|
##
|
||||||
## Calculate the number of work_data buffers to provide to leo_decode().
|
## Calculate the number of work_data buffers to provide to leoDecode().
|
||||||
##
|
##
|
||||||
## The sum of original_count + recovery_count must not exceed 65536.
|
## The sum of original_count + recovery_count must not exceed 65536.
|
||||||
##
|
##
|
||||||
@ -251,7 +251,7 @@ proc leoEncode*(
|
|||||||
proc leoDecodeWorkCount*(originalCount: cuint; recoveryCount: cuint): cuint
|
proc leoDecodeWorkCount*(originalCount: cuint; recoveryCount: cuint): cuint
|
||||||
{.leo, importc: "leo_decode_work_count".}
|
{.leo, importc: "leo_decode_work_count".}
|
||||||
##
|
##
|
||||||
## leo_decode()
|
## leoDecode()
|
||||||
##
|
##
|
||||||
## Decode original data from recovery data.
|
## Decode original data from recovery data.
|
||||||
##
|
##
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user