]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move bools to 1-bit fields
authorAlan T. DeKok <aland@freeradius.org>
Sun, 11 May 2025 13:29:07 +0000 (09:29 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 11 May 2025 13:32:09 +0000 (09:32 -0400)
src/lib/unlang/xlat.h

index 6a418b6d4c9211a5b48d783f32366c33790a05d7..7123867b3ec5b6cd939a42c3dda2fb644c79fccf 100644 (file)
@@ -142,14 +142,14 @@ typedef enum {
  *
  */
 typedef struct {
-       bool                            required;       //!< Argument must be present, and non-empty.
-       bool                            concat;         //!< Concat boxes together.
-       bool                            single;         //!< Argument must only contain a single box
-       bool                            will_escape;    //!< the function will do escaping and concatenation.
+       uint8_t                         required : 1;   //!< Argument must be present, and non-empty.
+       uint8_t                         concat : 1;     //!< Concat boxes together.
+       uint8_t                         single : 1;     //!< Argument must only contain a single box
+       uint8_t                         will_escape : 1;   //!< the function will do escaping and concatenation.
+       uint8_t                         always_escape : 1;  //!< Pass all arguments to escape function not just
+                                                           ///< tainted ones.
        xlat_arg_parser_variadic_t      variadic;       //!< All additional boxes should be processed
                                                        ///< using this definition.
-       bool                            always_escape;  //!< Pass all arguments to escape function not just
-                                                       ///< tainted ones.
        fr_type_t                       type;           //!< Type to cast argument to.
        xlat_escape_func_t              func;           //!< Function to handle tainted values.
        fr_value_box_safe_for_t         safe_for;       //!< Escaped value to set for boxes processed by