Skip to content

Commit

Permalink
unbreak build on most platforms and fix where it did build
Browse files Browse the repository at this point in the history
Reverts c-blake@1f25ac7

this would result in everything depending on cligen being built
with -march=native, which I don't think is intended, as for
distribution this is a big no and also a lot of platforms do
not provide -march=native in the first place
  • Loading branch information
q66 committed Nov 23, 2020
1 parent 80e13c4 commit deee68f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
2 changes: 0 additions & 2 deletions cligen/mslice.nim
Expand Up @@ -5,7 +5,6 @@
## styles can also be bounded by a number of splits/number of outputs and accept
## either ``MSlice`` or ``string`` as inputs to produce the ``seq[MSlice]``.

import ./prefetch
type csize = uint
proc cmemchr*(s: pointer, c: char, n: csize): pointer {.
importc: "memchr", header: "<string.h>" .}
Expand Down Expand Up @@ -123,7 +122,6 @@ iterator mSlices*(mslc: MSlice, sep=' ', eat='\0'): MSlice =
ms.len = recEnd -! ms.mem #sep is NOT included
if eat != '\0' and ms.len > 0 and ms[ms.len - 1] == eat:
dec(ms.len) #trim pre-sep char
prefetch(recEnd, pfRead, pfEvictNone)
yield ms
ms.mem = recEnd +! 1 #skip sep
remaining = mslc.len - (ms.mem -! mslc.mem)
Expand Down
19 changes: 0 additions & 19 deletions cligen/prefetch.nim

This file was deleted.

0 comments on commit deee68f

Please sign in to comment.