summaryrefslogtreecommitdiffstats
path: root/bfs.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-04 14:32:39 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-04 14:32:39 -0500
commit0a3754f8b66fc50dafeb61711679fc85c1e38038 (patch)
tree6a79b031b35df2726871c80910b5669fe4ef81e2 /bfs.h
parentbff3576bedf7337d2cd7bd8f106519b38d128535 (diff)
downloadbfs-0a3754f8b66fc50dafeb61711679fc85c1e38038.tar.xz
Implements -daystart.
Diffstat (limited to 'bfs.h')
-rw-r--r--bfs.h9
1 files changed, 6 insertions, 3 deletions
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;
};