mirror of
https://github.com/logos-storage/nim-leopard.git
synced 2026-01-02 13:43:08 +00:00
enables stylecheck
This commit is contained in:
parent
ae043fd262
commit
e5e882323c
@ -1,3 +1,5 @@
|
||||
--styleCheck:usages
|
||||
--styleCheck:error
|
||||
--threads:on
|
||||
--tlsEmulation:off
|
||||
# begin Nimble config (version 1)
|
||||
|
||||
@ -143,7 +143,7 @@ func decode*(
|
||||
parityPtr[i] = nil
|
||||
|
||||
let
|
||||
res = leo_decode(
|
||||
res = leoDecode(
|
||||
self.bufSize.culonglong,
|
||||
self.buffers.cuint,
|
||||
self.parity.cuint,
|
||||
@ -218,7 +218,7 @@ proc init[TT: Leo](
|
||||
# concurrently instantiate the library twice, and
|
||||
# might end up with two distinct versions - not a big
|
||||
# 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))
|
||||
|
||||
var
|
||||
|
||||
@ -144,8 +144,8 @@ static:
|
||||
discard gorge "rm -rf " & buildDir
|
||||
raise (ref Defect)(msg: "Failed to build Leopard-RS")
|
||||
|
||||
{.passC: LeopardCompilerFlags & " " & LeopardExtraCompilerFlags.}
|
||||
{.passL: LeopardLinkerFlags & " " & LeopardExtraLinkerFlags.}
|
||||
{.passc: LeopardCompilerFlags & " " & LeopardExtraCompilerFlags.}
|
||||
{.passl: LeopardLinkerFlags & " " & LeopardExtraLinkerFlags.}
|
||||
|
||||
{.pragma: leo, cdecl, header: LeopardHeader.}
|
||||
|
||||
@ -240,7 +240,7 @@ proc leoEncode*(
|
||||
##
|
||||
## 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.
|
||||
##
|
||||
@ -251,7 +251,7 @@ proc leoEncode*(
|
||||
proc leoDecodeWorkCount*(originalCount: cuint; recoveryCount: cuint): cuint
|
||||
{.leo, importc: "leo_decode_work_count".}
|
||||
##
|
||||
## leo_decode()
|
||||
## leoDecode()
|
||||
##
|
||||
## Decode original data from recovery data.
|
||||
##
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user