@@ -29,15 +29,15 @@ * * A struct that contains a pointer to the next list object, the previous list * object and the object. */ struct of_list_object_t { - /// A pointer to the next list object in the list - of_list_object_t *next; - /// A pointer to the previous list object in the list - of_list_object_t *previous; - /// The object for the list object + /*! A pointer to the next list object in the list */ + of_list_object_t *_Nullable next; + /*! A pointer to the previous list object in the list */ + of_list_object_t *_Nullable previous; + /*! The object for the list object */ id __unsafe_unretained object; }; /*! * @class OFList OFList.h ObjFW/OFList.h @@ -48,14 +48,14 @@ OFSerialization> #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) # define ObjectType id #endif { - of_list_object_t *_firstListObject; - of_list_object_t *_lastListObject; - size_t _count; - unsigned long _mutations; + of_list_object_t *_Nullable _firstListObject; + of_list_object_t *_Nullable _lastListObject; + size_t _count; + unsigned long _mutations; } /*! * The first list object of the list. */ @@ -133,20 +133,20 @@ * object. * * @param object The object which is checked for being in the list * @return A boolean whether the list contains the specified object */ -- (bool)containsObject: (nullable ObjectType)object; +- (bool)containsObject: (ObjectType)object; /*! * @brief Checks whether the list contains an object with the specified address. * * @param object The object which is checked for being in the list * @return A boolean whether the list contains an object with the specified * address */ -- (bool)containsObjectIdenticalTo: (nullable ObjectType)object; +- (bool)containsObjectIdenticalTo: (ObjectType)object; /*! * @brief Returns an OFEnumerator to enumerate through all objects of the list. * * @returns An OFEnumerator to enumerate through all objects of the list @@ -182,16 +182,16 @@ #endif @end @interface OFListEnumerator: OFEnumerator { - OFList *_list; - of_list_object_t *_current; - unsigned long _mutations; - unsigned long *_mutationsPtr; + OFList *_list; + of_list_object_t *_Nullable _current; + unsigned long _mutations; + unsigned long *_Nullable _mutationsPtr; } - initWithList: (OFList *)list mutationsPointer: (unsigned long *)mutationsPtr; @end OF_ASSUME_NONNULL_END