re additions for buffer (cstring) RE matching (#5117)

* Replace expr with untyped

* Add buffer (cstring) related procs
Replace expr with untyped
Replace testing assert() procs with doAssert()

* make the string variants call the cstring variants in order to fight code size

* Remove redundant proc

* fix casting of cstring
add init of variables (identified by verbosity:3)

* Speed up - use pattern.e for exec()
inline some procs
This commit is contained in:
jlp765 2017-01-17 00:55:15 +10:00 • committed by Andreas Rumpf
commit 704eae8495
2 changed files with 245 additions and 99 deletions

View file

@ -21,7 +21,7 @@ type
apart: array[ArrayPartSize, T]
UncheckedArray* {.unchecked.}[T] = array[0..100_000_000, T]
template usesSeqPart(x): expr = x.L > ArrayPartSize
template usesSeqPart(x): untyped = x.L > ArrayPartSize
proc initRtArray*[T](len: Natural): RtArray[T] =
result.L = len