#include <freeradius-devel/util/value.h>
Go to the source code of this file.
|
int | fr_value_calc_assignment_op (TALLOC_CTX *ctx, fr_value_box_t *dst, fr_token_t op, fr_value_box_t const *src)) |
| Calculate DST OP SRC. More...
|
|
int | fr_value_calc_binary_op (TALLOC_CTX *ctx, fr_value_box_t *dst, fr_type_t hint, fr_value_box_t const *a, fr_token_t op, fr_value_box_t const *b)) |
| Calculate DST = A OP B. More...
|
|
int | fr_value_calc_list_cmp (TALLOC_CTX *ctx, fr_value_box_t *dst, fr_value_box_list_t const *list1, fr_token_t op, fr_value_box_list_t const *list2) |
|
int | fr_value_calc_list_op (TALLOC_CTX *ctx, fr_value_box_t *box, fr_token_t op, fr_value_box_list_t const *list) |
| Apply a set of operations in order to create an output box. More...
|
|
int | fr_value_calc_nary_op (TALLOC_CTX *ctx, fr_value_box_t *dst, fr_type_t type, fr_token_t op, fr_value_box_t const *group)) |
| Calculate DST = OP { A, B, C, ... More...
|
|
int | fr_value_calc_unary_op (TALLOC_CTX *ctx, fr_value_box_t *dst, fr_token_t op, fr_value_box_t const *src)) |
| Calculate unary operations. More...
|
|
◆ fr_value_calc_assignment_op()
Calculate DST OP SRC.
e.g. "foo += bar".
This is done by doing some sanity checks, and then just calling the "binary operation" function.
Definition at line 2399 of file calc.c.
◆ fr_value_calc_binary_op()
Calculate DST = A OP B.
The result is written to DST only after it has been calculated. So it's safe to pass DST as either A or B. DST should already exist.
This function should arguably not take comparison operators, but whatever. The "promote types" code is the same for all of the binary operations, so we might as well just have one function.
Definition at line 1894 of file calc.c.
◆ fr_value_calc_list_cmp()
int fr_value_calc_list_cmp |
( |
TALLOC_CTX * |
ctx, |
|
|
fr_value_box_t * |
dst, |
|
|
fr_value_box_list_t const * |
list1, |
|
|
fr_token_t |
op, |
|
|
fr_value_box_list_t const * |
list2 |
|
) |
| |
◆ fr_value_calc_list_op()
Apply a set of operations in order to create an output box.
Definition at line 2588 of file calc.c.
◆ fr_value_calc_nary_op()
Calculate DST = OP { A, B, C, ...
}
The result is written to DST only after it has been calculated. So it's safe to pass DST as one of the inputs. DST should already exist.
Definition at line 2239 of file calc.c.
◆ fr_value_calc_unary_op()
Calculate unary operations.
e.g. "foo++", or "-foo".
Definition at line 2460 of file calc.c.