summary refs log tree commit diff stats
path: root/lib/wrappers/linenoise
Commit message (Collapse)AuthorAgeFilesLines
* docs now show nimExperimentalX APIs (#18345)Timothee Cour2021-06-251-6/+6
| | | | | * docs now show nimExperimentalX APIs * fix for windows
* Simple fix to make the linenoise wrapper do the right thing (#17234)PMunch2021-03-021-1/+1
|
* use `-r:off` for runnableExamples that should compile but not run (#17203)Timothee Cour2021-03-011-8/+7
| | | | | * use -r:off for runnableExamples that should compile but not run * use -r:off in other RT disabled tests
* add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C) (#16977)Timothee Cour2021-02-093-6/+64
| | | | | * add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C) * changelog
* [backport] Fix spelling typos (#12755)Brian Wignall2019-11-281-1/+1
|
* update linenoise (#5357)Arne Döring2017-03-253-56/+158
|
* make linenoise compile in some /tmp directoryAndreas Rumpf2016-09-262-2/+5
|
* fixes #3720Andreas Rumpf2016-01-172-24/+16
|
* fixes #3720Andreas Rumpf2016-01-171-13/+13
|
* rename lib/wrappers/linenoise/linenoise.{c,h}Stefan Talpalaru2015-07-093-2/+2
|
* linenoise support now worksAraq2015-06-211-1/+1
|
* Unix line endings for linenoise.nimAraq2015-06-211-38/+34
|
* use linenoise instead of GNU readlineAraq2015-06-215-0/+1290
/span>CacheCounter* = distinct string proc value*(c: CacheCounter): int {.magic: "NccValue".} proc inc*(c: CacheCounter; by = 1) {.magic: "NccInc".} proc add*(s: CacheSeq; value: NimNode) {.magic: "NcsAdd".} proc incl*(s: CacheSeq; value: NimNode) {.magic: "NcsIncl".} proc len*(s: CacheSeq): int {.magic: "NcsLen".} proc `[]`*(s: CacheSeq; i: int): NimNode {.magic: "NcsAt".} iterator items*(s: CacheSeq): NimNode = for i in 0 ..< len(s): yield s[i] proc `[]=`*(t: CacheTable; key: string, value: NimNode) {.magic: "NctPut".} ## 'key' has to be unique! proc len*(t: CacheTable): int {.magic: "NctLen".} proc `[]`*(t: CacheTable; key: string): NimNode {.magic: "NctGet".} proc hasNext(t: CacheTable; iter: int): bool {.magic: "NctHasNext".} proc next(t: CacheTable; iter: int): (string, NimNode, int) {.magic: "NctNext".} iterator pairs*(t: CacheTable): (string, NimNode) = var h = 0 while hasNext(t, h): let (a, b, h2) = next(t, h) yield (a, b) h = h2