]> git.neil.brown.name Git - edlib.git/commit
linecount: intro option of sync/async counting.
authorNeilBrown <neil@brown.name>
Sat, 3 Jun 2023 01:32:55 +0000 (11:32 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 05:40:21 +0000 (15:40 +1000)
commite1e7f3edc8a4096240b4e4f34c807f4e746f6049
tree9b0a830922fe109d46b35f18242b5bde780e355b
parent5499cf4cf1075486f0ba80b9671270bde52eeecc
linecount: intro option of sync/async counting.

lib-view doesn't need a completely up-to-date number.  Other callers do.
So add a flag to support this.
CountLines will always be async when no mark is given.
When a mark is given, only async if num==1
CountLinesAsync is always async.

Signed-off-by: NeilBrown <neil@brown.name>
lib-linecount.c
lib-view.c