@@ -16,11 +16,14 @@ #include #import "OFObject.h" -enum of_number_type { +/** + * \brief The type of a number. + */ +typedef enum of_number_type_t { OF_NUMBER_BOOL, OF_NUMBER_CHAR, OF_NUMBER_SHORT, OF_NUMBER_INT, OF_NUMBER_LONG, @@ -43,11 +46,11 @@ OF_NUMBER_PTRDIFF, OF_NUMBER_INTPTR, OF_NUMBER_UINTPTR, OF_NUMBER_FLOAT, OF_NUMBER_DOUBLE, -}; +} of_number_type_t; /** * \brief Provides a way to store a number in an object. */ @interface OFNumber: OFObject @@ -78,11 +81,11 @@ intptr_t intptr; uintptr_t uintptr; float float_; double double_; } value; - enum of_number_type type; + of_number_type_t type; } /** * \param bool_ A BOOL which the OFNumber should contain * \return A new autoreleased OFNumber @@ -446,14 +449,13 @@ * \return An initialized OFNumber */ - initWithDouble: (double)double_; /** - * \return An enum of type of_number_type indicating the type of contained - * number of the OFNumber + * \return An of_number_type_t indicating the type of the number */ -- (enum of_number_type)type; +- (of_number_type_t)type; /** * \return The OFNumber as a BOOL */ - (BOOL)boolValue;