X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Feval.h;h=d68b9af474ce7f5806746dc7db2321d059104b7f;hb=cf1597811865739b265c00e91d1a1c661ff8e880;hp=c1f049ce402d0953f1dc2f4ff35b32768ec775ac;hpb=4573404814de3da6605595bbe0a43837fa48d568;p=netdata.git diff --git a/src/eval.h b/src/eval.h index c1f049ce..d68b9af4 100644 --- a/src/eval.h +++ b/src/eval.h @@ -14,7 +14,11 @@ typedef struct eval_expression { const char *source; const char *parsed_as; + int *status; calculated_number *this; + time_t *after; + time_t *before; + calculated_number result; int error; @@ -41,6 +45,7 @@ typedef struct eval_expression { #define EVAL_ERROR_MISSING_OPERAND 3 #define EVAL_ERROR_MISSING_OPERATOR 4 #define EVAL_ERROR_REMAINING_GARBAGE 5 +#define EVAL_ERROR_IF_THEN_ELSE_MISSING_ELSE 6 // evaluation errors #define EVAL_ERROR_INVALID_VALUE 101