Oops - forgot export marker.
This commit is contained in:
parent
1bb6775f92
commit
ec1a77bb86
1 changed files with 1 additions and 1 deletions
|
|
@ -271,7 +271,7 @@ type MemSlice* = object ## represent slice of a MemFile for iteration over deli
|
||||||
data*: pointer
|
data*: pointer
|
||||||
size*: int
|
size*: int
|
||||||
|
|
||||||
proc `==` (x, y: MemSlice): bool =
|
proc `==`*(x, y: MemSlice): bool =
|
||||||
## Compare a pair of MemSlice for strict equality.
|
## Compare a pair of MemSlice for strict equality.
|
||||||
proc memcmp(a, b: pointer, n:int):int {.importc: "memcmp",header: "string.h".}
|
proc memcmp(a, b: pointer, n:int):int {.importc: "memcmp",header: "string.h".}
|
||||||
result = (x.size == y.size and memcmp(x.data, y.data, x.size) == 0)
|
result = (x.size == y.size and memcmp(x.data, y.data, x.size) == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue