enables stylecheck

This commit is contained in:
benbierens 2023-03-09 09:38:24 +01:00
parent ae043fd262
commit e5e882323c
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
3 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,5 @@
--styleCheck:usages
--styleCheck:error
--threads:on
--tlsEmulation:off
# begin Nimble config (version 1)

View File

@ -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

View File

@ -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.
##