summaryrefslogtreecommitdiffstats
path: root/bfs.h
diff options
context:
space:
mode:
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;
};