mirror of
https://github.com/vacp2p/nim-libp2p-experimental.git
synced 2025-01-14 12:25:01 +00:00
Add gcsafe markers to make Nim 1.0 happy
This commit is contained in:
parent
41e1479213
commit
1018bffb3f
@ -370,21 +370,21 @@ type
|
|||||||
bycopy.} = object
|
bycopy.} = object
|
||||||
supportedCurves* {.importc: "supported_curves".}: uint32
|
supportedCurves* {.importc: "supported_curves".}: uint32
|
||||||
generator* {.importc: "generator".}: proc (curve: cint,
|
generator* {.importc: "generator".}: proc (curve: cint,
|
||||||
length: ptr int): ptr cuchar {.cdecl.}
|
length: ptr int): ptr cuchar {.cdecl, gcsafe.}
|
||||||
order* {.importc: "order".}: proc (curve: cint,
|
order* {.importc: "order".}: proc (curve: cint,
|
||||||
length: ptr int): ptr cuchar {.cdecl.}
|
length: ptr int): ptr cuchar {.cdecl, gcsafe.}
|
||||||
xoff* {.importc: "xoff".}: proc (curve: cint,
|
xoff* {.importc: "xoff".}: proc (curve: cint,
|
||||||
length: ptr int): int {.cdecl.}
|
length: ptr int): int {.cdecl, gcsafe.}
|
||||||
mul* {.importc: "mul".}: proc (g: ptr cuchar, glen: int,
|
mul* {.importc: "mul".}: proc (g: ptr cuchar, glen: int,
|
||||||
x: ptr cuchar, xlen: int,
|
x: ptr cuchar, xlen: int,
|
||||||
curve: cint): uint32 {.cdecl.}
|
curve: cint): uint32 {.cdecl, gcsafe.}
|
||||||
mulgen* {.importc: "mulgen".}: proc (r: ptr cuchar,
|
mulgen* {.importc: "mulgen".}: proc (r: ptr cuchar,
|
||||||
x: ptr cuchar, xlen: int,
|
x: ptr cuchar, xlen: int,
|
||||||
curve: cint): int {.cdecl.}
|
curve: cint): int {.cdecl, gcsafe.}
|
||||||
muladd* {.importc: "muladd".}: proc (a: ptr cuchar, b: ptr cuchar,
|
muladd* {.importc: "muladd".}: proc (a: ptr cuchar, b: ptr cuchar,
|
||||||
length: int, x: ptr cuchar, xlen: int,
|
length: int, x: ptr cuchar, xlen: int,
|
||||||
y: ptr cuchar, ylen: int,
|
y: ptr cuchar, ylen: int,
|
||||||
curve: cint): uint32 {.cdecl.}
|
curve: cint): uint32 {.cdecl, gcsafe.}
|
||||||
|
|
||||||
BrPrngSeeder* = proc (ctx: ptr ptr BrPrngClass): cint {.cdecl.}
|
BrPrngSeeder* = proc (ctx: ptr ptr BrPrngClass): cint {.cdecl.}
|
||||||
BrRsaKeygen* = proc (ctx: ptr ptr BrPrngClass,
|
BrRsaKeygen* = proc (ctx: ptr ptr BrPrngClass,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user