X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_rpncalc.h;h=39909a600207ebadbb9c80e3ceb77485f35f9e2d;hp=a4e7c65cd7c116100f8dcba97be1df95b9dc6193;hb=fcbf2878a231442f4b62ee95fca39e28f04fc8d2;hpb=b9b92c21c1b517ca2d69e7baac4be7587aff5eb5 diff --git a/src/rrd_rpncalc.h b/src/rrd_rpncalc.h index a4e7c65..39909a6 100644 --- a/src/rrd_rpncalc.h +++ b/src/rrd_rpncalc.h @@ -6,7 +6,7 @@ #ifndef _RRD_RPNCALC_H #define _RRD_RPNCALC_H -/* WARNING: if new operators are added, they MUST be added after OP_END. +/* WARNING: if new operators are added, they MUST be added at the very end of the list. * This is because COMPUTE (CDEF) DS store OP nodes by number (name is not * an option due to limited par array size). OP nodes must have the same * numeric values, otherwise the stored numbers will mean something different. */ @@ -15,7 +15,8 @@ enum op_en {OP_NUMBER=0,OP_VARIABLE,OP_INF,OP_PREV,OP_NEGINF, OP_DIV,OP_SIN, OP_DUP, OP_EXC, OP_POP, OP_COS,OP_LOG,OP_EXP,OP_LT,OP_LE,OP_GT,OP_GE,OP_EQ,OP_IF, OP_MIN,OP_MAX,OP_LIMIT, OP_FLOOR, OP_CEIL, - OP_UN,OP_END,OP_LTIME,OP_NE,OP_ISINF,OP_PREV_OTHER}; + OP_UN,OP_END,OP_LTIME,OP_NE,OP_ISINF,OP_PREV_OTHER,OP_COUNT, + OP_ATAN,OP_SQRT,OP_SORT,OP_REV,OP_TREND}; typedef struct rpnp_t { enum op_en op;