diff options
Diffstat (limited to 'src/libs/zbxeval/execute.c')
-rw-r--r-- | src/libs/zbxeval/execute.c | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/src/libs/zbxeval/execute.c b/src/libs/zbxeval/execute.c index 4fad1a013ce..fe72f4bca5b 100644 --- a/src/libs/zbxeval/execute.c +++ b/src/libs/zbxeval/execute.c @@ -48,8 +48,6 @@ zbx_function_trim_optype_t; /****************************************************************************** * * - * Function: variant_convert_suffixed_num * - * * * Purpose: convert variant string value containing suffixed number to * * floating point variant value * * * @@ -83,8 +81,6 @@ static int variant_convert_suffixed_num(zbx_variant_t *value, const zbx_variant_ /****************************************************************************** * * - * Function: eval_execute_op_unary * - * * * Purpose: evaluate unary operator * * * * Parameters: ctx - [IN] the evaluation context * @@ -151,8 +147,6 @@ static int eval_execute_op_unary(const zbx_eval_context_t *ctx, const zbx_eval_t /****************************************************************************** * * - * Function: eval_execute_op_logic_err * - * * * Purpose: evaluate logical or/and operator with one operand being error * * * * Parameters: token - [IN] the operator token * @@ -200,8 +194,6 @@ static int eval_execute_op_logic_err(const zbx_eval_token_t *token, const zbx_va /****************************************************************************** * * - * Function: eval_variant_compare * - * * * Purpose: compare two variant values supporting suffixed numbers * * * * Return value: <0 - the first value is less than the second * @@ -233,8 +225,6 @@ static int eval_variant_compare(const zbx_variant_t *left, const zbx_variant_t * /****************************************************************************** * * - * Function: eval_execute_op_binary * - * * * Purpose: evaluate binary operator * * * * Parameters: ctx - [IN] the evaluation context * @@ -408,8 +398,6 @@ finish: /****************************************************************************** * * - * Function: eval_suffixed_number_parse * - * * * Purpose: check if the value is suffixed number and return the suffix if * * exists * * * @@ -441,8 +429,6 @@ int eval_suffixed_number_parse(const char *value, char *suffix) /****************************************************************************** * * - * Function: eval_execute_push_value * - * * * Purpose: push value in output stack * * * * Parameters: ctx - [IN] the evaluation context * @@ -527,8 +513,6 @@ static int eval_execute_push_value(const zbx_eval_context_t *ctx, const zbx_eval /****************************************************************************** * * - * Function: eval_execute_push_null * - * * * Purpose: push null value in output stack * * * * Parameters: output - [IN/OUT] the output value stack * @@ -544,8 +528,6 @@ static void eval_execute_push_null(zbx_vector_var_t *output) /****************************************************************************** * * - * Function: eval_compare_token * - * * * Purpose: check if expression fragment matches the specified text * * * * Parameters: ctx - [IN] the evaluation context * @@ -571,8 +553,6 @@ int eval_compare_token(const zbx_eval_context_t *ctx, const zbx_strloc_t *loc, c /****************************************************************************** * * - * Function: eval_function_return * - * * * Purpose: handle function return * * * * Parameters: args_num - [IN] the number of function arguments * @@ -597,8 +577,6 @@ static void eval_function_return(zbx_uint32_t args_num, zbx_variant_t *value, zb /****************************************************************************** * * - * Function: eval_validate_function_args * - * * * Purpose: validate function arguments * * * * Parameters: ctx - [IN] the evaluation context * @@ -661,8 +639,6 @@ static const char *eval_type_desc(unsigned char type) /****************************************************************************** * * - * Function: eval_convert_function_arg * - * * * Purpose: convert function argument to the specified type * * * * Parameters: ctx - [IN] the evaluation context * @@ -698,8 +674,6 @@ static int eval_convert_function_arg(const zbx_eval_context_t *ctx, const zbx_ev /****************************************************************************** * * - * Function: eval_prepare_math_function_args * - * * * Purpose: validate and prepare (convert to floating values) math function * * arguments * * * @@ -767,8 +741,6 @@ static int eval_prepare_math_function_args(const zbx_eval_context_t *ctx, const /****************************************************************************** * * - * Function: eval_execute_function_min * - * * * Purpose: evaluate min() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -823,8 +795,6 @@ static int eval_execute_function_min(const zbx_eval_context_t *ctx, const zbx_ev /****************************************************************************** * * - * Function: eval_execute_function_max * - * * * Purpose: evaluate max() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -879,8 +849,6 @@ static int eval_execute_function_max(const zbx_eval_context_t *ctx, const zbx_ev /****************************************************************************** * * - * Function: eval_execute_function_sum * - * * * Purpose: evaluate sum() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -925,8 +893,6 @@ static int eval_execute_function_sum(const zbx_eval_context_t *ctx, const zbx_ev /****************************************************************************** * * - * Function: eval_execute_function_avg * - * * * Purpose: evaluate avg() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -975,8 +941,6 @@ static int eval_execute_function_avg(const zbx_eval_context_t *ctx, const zbx_ev /****************************************************************************** * * - * Function: eval_execute_function_abs * - * * * Purpose: evaluate abs() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1013,8 +977,6 @@ static int eval_execute_function_abs(const zbx_eval_context_t *ctx, const zbx_ev /****************************************************************************** * * - * Function: eval_execute_function_length * - * * * Purpose: evaluate length() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1055,8 +1017,6 @@ static int eval_execute_function_length(const zbx_eval_context_t *ctx, const zbx /****************************************************************************** * * - * Function: eval_execute_function_date * - * * * Purpose: evaluate date() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1097,8 +1057,6 @@ static int eval_execute_function_date(const zbx_eval_context_t *ctx, const zbx_e /****************************************************************************** * * - * Function: eval_execute_function_time * - * * * Purpose: evaluate time() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1138,8 +1096,6 @@ static int eval_execute_function_time(const zbx_eval_context_t *ctx, const zbx_e } /****************************************************************************** * * - * Function: eval_execute_function_now * - * * * Purpose: evaluate now() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1170,8 +1126,6 @@ static int eval_execute_function_now(const zbx_eval_context_t *ctx, const zbx_ev } /****************************************************************************** * * - * Function: eval_execute_function_dayofweek * - * * * Purpose: evaluate dayofweek() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1212,8 +1166,6 @@ static int eval_execute_function_dayofweek(const zbx_eval_context_t *ctx, const /****************************************************************************** * * - * Function: eval_execute_function_dayofmonth * - * * * Purpose: evaluate dayofmonth() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1254,8 +1206,6 @@ static int eval_execute_function_dayofmonth(const zbx_eval_context_t *ctx, const /****************************************************************************** * * - * Function: eval_execute_function_bitwise * - * * * Purpose: evaluate bitand(), bitor(), bitxor(), bitlshift(), * * bitrshift() functions * * * @@ -1319,8 +1269,6 @@ static int eval_execute_function_bitwise(const zbx_eval_context_t *ctx, const zb /****************************************************************************** * * - * Function: eval_execute_function_bitnot * - * * * Purpose: evaluate bitnot() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1361,8 +1309,6 @@ static int eval_execute_function_bitnot(const zbx_eval_context_t *ctx, const zbx /****************************************************************************** * * - * Function: eval_execute_function_left * - * * * Purpose: evaluate left() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1447,8 +1393,6 @@ static int eval_validate_statistical_function_args(const zbx_eval_context_t *ctx /****************************************************************************** * * - * Function: eval_execute_statistical_function * - * * * Purpose: common operations for aggregate function calculation * * * * Parameters: ctx - [IN] the evaluation context * @@ -1485,8 +1429,6 @@ static int eval_execute_statistical_function(const zbx_eval_context_t *ctx, cons /****************************************************************************** * * - * Function: eval_execute_function_right * - * * * Purpose: evaluate right() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1545,8 +1487,6 @@ static int eval_execute_function_right(const zbx_eval_context_t *ctx, const zbx_ /****************************************************************************** * * - * Function: eval_execute_function_mid * - * * * Purpose: evaluate mid() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1615,8 +1555,6 @@ static int eval_execute_function_mid(const zbx_eval_context_t *ctx, const zbx_ev /****************************************************************************** * * - * Function: eval_execute_function_trim * - * * * Purpose: evaluate trim(), rtrim(), ltrim() functions * * * * Parameters: ctx - [IN] the evaluation context * @@ -1688,8 +1626,6 @@ static int eval_execute_function_trim(const zbx_eval_context_t *ctx, const zbx_e /****************************************************************************** * * - * Function: eval_execute_function_concat * - * * * Purpose: evaluate concat() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1736,8 +1672,6 @@ static int eval_execute_function_concat(const zbx_eval_context_t *ctx, const zbx /****************************************************************************** * * - * Function: eval_execute_function_insert * - * * * Purpose: evaluate insert() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1812,8 +1746,6 @@ static int eval_execute_function_insert(const zbx_eval_context_t *ctx, const zbx /****************************************************************************** * * - * Function: eval_execute_function_replace * - * * * Purpose: evaluate replace() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1879,8 +1811,6 @@ static int eval_execute_function_replace(const zbx_eval_context_t *ctx, const zb /****************************************************************************** * * - * Function: eval_execute_function_repeat * - * * * Purpose: evaluate repeat() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -1943,8 +1873,6 @@ static int eval_execute_function_repeat(const zbx_eval_context_t *ctx, const zbx /****************************************************************************** * * - * Function: eval_execute_function_bytelength * - * * * Purpose: evaluate bytelength() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -2004,8 +1932,6 @@ static int eval_execute_function_bytelength(const zbx_eval_context_t *ctx, const /****************************************************************************** * * - * Function: eval_execute_function_bitlength * - * * * Purpose: evaluate bitlength() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -2064,8 +1990,6 @@ static int eval_execute_function_bitlength(const zbx_eval_context_t *ctx, const /****************************************************************************** * * - * Function: eval_execute_function_char * - * * * Purpose: evaluate char() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -2113,8 +2037,6 @@ static int eval_execute_function_char(const zbx_eval_context_t *ctx, const zbx_e /****************************************************************************** * * - * Function: eval_execute_function_ascii * - * * * Purpose: evaluate ascii() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -2158,8 +2080,6 @@ static int eval_execute_function_ascii(const zbx_eval_context_t *ctx, const zbx_ /****************************************************************************** * * - * Function: eval_execute_function_between * - * * * Purpose: evaluate between() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -2203,8 +2123,6 @@ static int eval_execute_function_between(const zbx_eval_context_t *ctx, const zb /****************************************************************************** * * - * Function: eval_execute_function_in * - * * * Purpose: evaluate in() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -2295,8 +2213,6 @@ out: /****************************************************************************** * * - * Function: eval_execute_function_histogram_quantile * - * * * Purpose: evaluate histogram_quantile() function * * * * Parameters: ctx - [IN] the evaluation context * @@ -2425,8 +2341,6 @@ static int eval_execute_function_histogram_quantile(const zbx_eval_context_t *ct /****************************************************************************** * * - * Function: eval_execute_cb_function * - * * * Purpose: evaluate function by calling custom callback (if configured) * * * * Parameters: ctx - [IN] the evaluation context * @@ -2497,8 +2411,6 @@ static double eval_math_func_signum(double x) /****************************************************************************** * * - * Function: eval_execute_math_function_single_param * - * * * Purpose: evaluate mathematical function by calling passed function * * with 1 double argument * * * @@ -2580,8 +2492,6 @@ static double eval_math_func_truncate(double n, double decimal_points) /****************************************************************************** * * - * Function: eval_execute_math_function_double_param * - * * * Purpose: evaluate mathematical function by calling passed function * * with 2 double arguments * * * @@ -2650,8 +2560,6 @@ static int eval_execute_math_function_double_param(const zbx_eval_context_t *ctx /****************************************************************************** * * - * Function: eval_execute_math_function_return_value * - * * * Purpose: evaluate mathematical function that returns constant value * * * * Parameters: ctx - [IN] the evaluation context * @@ -2727,8 +2635,6 @@ static int eval_execute_function_count(const zbx_eval_context_t *ctx, const zbx_ /****************************************************************************** * * - * Function: eval_execute_common_function * - * * * Purpose: evaluate common function * * * * Parameters: ctx - [IN] the evaluation context * @@ -2902,8 +2808,6 @@ static int eval_execute_common_function(const zbx_eval_context_t *ctx, const zbx /****************************************************************************** * * - * Function: eval_execute_history_function * - * * * Purpose: evaluate history function * * * * Parameters: ctx - [IN] the evaluation context * @@ -2934,8 +2838,6 @@ static int eval_execute_history_function(const zbx_eval_context_t *ctx, const zb /****************************************************************************** * * - * Function: eval_throw_exception * - * * * Purpose: throw exception by returning the specified error * * * * Parameters: output - [IN/OUT] the output value stack * @@ -2960,8 +2862,6 @@ static void eval_throw_exception(zbx_vector_var_t *output, char **error) /****************************************************************************** * * - * Function: eval_execute * - * * * Purpose: evaluate pre-parsed expression * * * * Parameters: ctx - [IN] the evaluation context * @@ -3082,8 +2982,6 @@ out: /****************************************************************************** * * - * Function: eval_init_execute_context * - * * * Purpose: initialize execution context * * * * Parameters: ctx - [IN] the evaluation context * @@ -3109,8 +3007,6 @@ static void eval_init_execute_context(zbx_eval_context_t *ctx, const zbx_timespe /****************************************************************************** * * - * Function: zbx_eval_execute * - * * * Purpose: evaluate parsed expression * * * * Parameters: ctx - [IN] the evaluation context * @@ -3131,8 +3027,6 @@ int zbx_eval_execute(zbx_eval_context_t *ctx, const zbx_timespec_t *ts, zbx_vari /****************************************************************************** * * - * Function: zbx_eval_execute_ext * - * * * Purpose: evaluate parsed expression with callback for custom function * * processing * * * |