Skip to content

Commit

Permalink
tmpl: Move NUM constants into the tmpl header
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 14, 2020
1 parent db52de9 commit a1a9607
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/lib/server/tmpl.h
Expand Up @@ -177,6 +177,10 @@ typedef struct vp_tmpl_rules_s vp_tmpl_rules_t;
#include <freeradius-devel/util/packet.h>
#include <freeradius-devel/util/regex.h>

#define NUM_ANY INT16_MIN
#define NUM_ALL (INT16_MIN + 1)
#define NUM_COUNT (INT16_MIN + 2)
#define NUM_LAST (INT16_MIN + 3)
/** A source or sink of value data.
*
* Is used as both the RHS and LHS of a map (both update, and conditional types)
Expand Down
5 changes: 0 additions & 5 deletions src/lib/util/pair.h
Expand Up @@ -196,11 +196,6 @@ typedef struct {
#define ATTR_TAG_MATCH(_a, _t) (!_a->da->flags.has_tag || TAG_EQ(_t, _a->tag))
#define ATTRIBUTE_EQ(_x, _y) ((_x && _y) && (_x->da == _y->da) && (!_x->da->flags.has_tag || TAG_EQ(_x->tag, _y->tag)))

#define NUM_ANY INT_MIN
#define NUM_ALL (INT_MIN + 1)
#define NUM_COUNT (INT_MIN + 2)
#define NUM_LAST (INT_MIN + 3)

# ifdef WITH_VERIFY_PTR
void fr_pair_verify(char const *file, int line, VALUE_PAIR const *vp);
void fr_pair_list_verify(char const *file, int line, TALLOC_CTX const *expected, VALUE_PAIR *vps);
Expand Down

0 comments on commit a1a9607

Please sign in to comment.