From 0a3754f8b66fc50dafeb61711679fc85c1e38038 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 4 Feb 2016 14:32:39 -0500 Subject: Implements -daystart. --- bfs.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bfs.h') diff --git a/bfs.h b/bfs.h index bf33a33..2a9ba2e 100644 --- a/bfs.h +++ b/bfs.h @@ -63,9 +63,6 @@ struct cmdline { /** The command line expression. */ struct expr *expr; - - /** The current time. */ - struct timespec now; }; /** @@ -109,14 +106,20 @@ struct expr { struct expr *rhs; /** The function that evaluates this expression. */ eval_fn *eval; + /** The optional comparison flag. */ enum cmpflag cmp; + + /** The optional reference time. */ + struct timespec reftime; /** The optional time field. */ enum timefield timefield; /** The optional time unit. */ enum timeunit timeunit; + /** Optional integer data for this expression. */ int idata; + /** Optional string data for this expression. */ const char *sdata; }; -- cgit v1.2.3