vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 4650c731b7fec09b3bbfbc12137fdf9549077018 parent ea706f07b2aa36418c4f763abc21f4785f5cc1e3 Author: Marc André Tanner <mat@brain-dump.org> Date: Tue, 20 Oct 2020 14:14:42 +0200 test/core: add time(3) stub for tis-interpreter Not sure why a deterministic stub implementation is not provided by the CI environment[1], even though the public tis-interpreter repositories contain relevant code[2,3]. [1] https://github.com/TrustInSoft-CI/TrustInSoft-CI/issues/12 [2] https://github.com/TrustInSoft/tis-kernel/blob/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/share/tis-interpreter/common_time.c#L148 [3] https://github.com/TrustInSoft/tis-interpreter/blob/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/tis-interpreter/common_helpers/common_time.c#L138 Diffstat:
| M | core/tap.h | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/core/tap.h b/core/tap.h @@ -36,6 +36,15 @@ static int exit_status() { } \ } while (0) +#include <time.h> +time_t time(time_t *p) +{ + static time_t value; + value++; + if (p) *p = value; + return value; +} + #else #include <ccan/tap/tap.h> #define TIS_INTERPRETER 0