From: Alan T. DeKok Date: Sun, 11 May 2025 13:29:07 +0000 (-0400) Subject: move bools to 1-bit fields X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c627e3bc1984039f4dce9bd02f7612e43f59ca7d;p=thirdparty%2Ffreeradius-server.git move bools to 1-bit fields --- diff --git a/src/lib/unlang/xlat.h b/src/lib/unlang/xlat.h index 6a418b6d4c9..7123867b3ec 100644 --- a/src/lib/unlang/xlat.h +++ b/src/lib/unlang/xlat.h @@ -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