@@ -89,16 +89,17 @@ /*! * @struct of_range_t OFObject.h ObjFW/OFObject.h * * @brief A range. */ -typedef struct OF_BOXABLE { +struct OF_BOXABLE of_range_t { /*! The start of the range */ size_t location; /*! The length of the range */ size_t length; -} of_range_t; +}; +typedef struct of_range_t of_range_t; /*! * @brief Creates a new of_range_t. * * @param start The starting index of the range @@ -140,16 +141,17 @@ /*! * @struct of_point_t OFObject.h ObjFW/OFObject.h * * @brief A point. */ -typedef struct OF_BOXABLE { +struct OF_BOXABLE of_point_t { /*! The x coordinate of the point */ float x; /*! The y coordinate of the point */ float y; -} of_point_t; +}; +typedef struct of_point_t of_point_t; /*! * @brief Creates a new of_point_t. * * @param x The x coordinate of the point @@ -186,16 +188,17 @@ /*! * @struct of_dimension_t OFObject.h ObjFW/OFObject.h * * @brief A dimension. */ -typedef struct OF_BOXABLE { +struct OF_BOXABLE of_dimension_t { /*! The width of the dimension */ float width; /*! The height of the dimension */ float height; -} of_dimension_t; +}; +typedef struct of_dimension_t of_dimension_t; /*! * @brief Creates a new of_dimension_t. * * @param width The width of the dimension @@ -232,16 +235,17 @@ /*! * @struct of_rectangle_t OFObject.h ObjFW/OFObject.h * * @brief A rectangle. */ -typedef struct OF_BOXABLE { +struct OF_BOXABLE of_rectangle_t { /*! The point from where the rectangle originates */ of_point_t origin; /*! The size of the rectangle */ of_dimension_t size; -} of_rectangle_t; +}; +typedef struct of_rectangle_t of_rectangle_t; /*! * @brief Creates a new of_rectangle_t. * * @param x The x coordinate of the top left corner of the rectangle