mirror of
https://github.com/logos-storage/nim-leopard.git
synced 2026-01-02 05:33:08 +00:00
enables stylecheck (#10)
* enables stylecheck * attempt to fix mac build
This commit is contained in:
parent
ae043fd262
commit
1a6f2ab725
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -50,7 +50,8 @@ jobs:
|
||||
brew update
|
||||
brew install \
|
||||
findutils \
|
||||
libomp
|
||||
libomp \
|
||||
llvm@14
|
||||
|
||||
- name: Install tools and libraries via MSYS2 (Windows)
|
||||
if: matrix.platform.os == 'windows'
|
||||
|
||||
@ -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