diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-02-04 14:32:39 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-02-04 14:32:39 -0500 |
commit | 0a3754f8b66fc50dafeb61711679fc85c1e38038 (patch) | |
tree | 6a79b031b35df2726871c80910b5669fe4ef81e2 /bfs.h | |
parent | bff3576bedf7337d2cd7bd8f106519b38d128535 (diff) | |
download | bfs-0a3754f8b66fc50dafeb61711679fc85c1e38038.tar.xz |
Implements -daystart.
Diffstat (limited to 'bfs.h')
-rw-r--r-- | bfs.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; }; |