Overview
Comment: | Fix a few missing nullable |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | 0.90 |
Files: | files | file ages | folders |
SHA3-256: |
cfb4a7ab76544b58eeeb0ff5df07feac |
User & Date: | js on 2017-09-26 00:06:49 |
Other Links: | branch diff | manifest | tags |
Context
2017-09-26
| ||
22:01 | Many nullability fixes check-in: 319709fff1 user: js tags: 0.90 | |
00:06 | Fix a few missing nullable check-in: cfb4a7ab76 user: js tags: 0.90 | |
2017-09-24
| ||
01:21 | OFTCPSocket: Retain exception for async connect check-in: 892e623e3a user: js tags: 0.90 | |
Changes
Modified src/OFList.h from [156b26bb39] to [56e2b65e10].
︙ | ︙ | |||
27 28 29 30 31 32 33 | * * @brief A list object. * * A struct that contains a pointer to the next list object, the previous list * object and the object. */ struct of_list_object_t { | | | | | | | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | * * @brief A list object. * * 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 *_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 * * @brief A class which provides easy to use double-linked lists. |
︙ | ︙ |
Modified src/OFMapTable.h from [9ffd8ae151] to [d688a725dd].
︙ | ︙ | |||
247 248 249 250 251 252 253 | - init OF_UNAVAILABLE; /*! * @brief Returns the next object. * * @return The next object */ | | | 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | - init OF_UNAVAILABLE; /*! * @brief Returns the next object. * * @return The next object */ - (nullable void *)nextObject; /*! * @brief Resets the enumerator, so the next call to @ref nextKey returns the * first key again. */ - (void)reset; @end OF_ASSUME_NONNULL_END |
Modified src/OFObject.h from [9973173cd1] to [3bd61b8897].
︙ | ︙ | |||
644 645 646 647 648 649 650 | /*! * @brief Allocates memory and stores it in the object's memory pool. * * It will be freed automatically when the object is deallocated. * * @param size The size of the memory to allocate | | > | | > | | | 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 | /*! * @brief Allocates memory and stores it in the object's memory pool. * * It will be freed automatically when the object is deallocated. * * @param size The size of the memory to allocate * @return A pointer to the allocated memory. May return NULL if the specified * size is 0. */ - (nullable void *)allocMemoryWithSize: (size_t)size; /*! * @brief Allocates memory for the specified number of items and stores it in * the object's memory pool. * * It will be freed automatically when the object is deallocated. * * @param size The size of each item to allocate * @param count The number of items to allocate * @return A pointer to the allocated memory. May return NULL if the specified * size or count is 0. */ - (nullable void *)allocMemoryWithSize: (size_t)size count: (size_t)count; /*! * @brief Resizes memory in the object's memory pool to the specified size. * * If the pointer is NULL, this is equivalent to allocating memory. * If the size is 0, this is equivalent to freeing memory. * |
︙ | ︙ |
Modified src/OFString+XMLUnescaping.h from [0f77351c40] to [48a186039b].
︙ | ︙ | |||
56 57 58 59 60 61 62 | * it is unknown to the callback as well, in which case an exception will be * thrown. * * @param string The string which contains the unknown entity * @param entity The name of the entity that is unknown * @return A substitution for the entity or `nil` */ | | | | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | * it is unknown to the callback as well, in which case an exception will be * thrown. * * @param string The string which contains the unknown entity * @param entity The name of the entity that is unknown * @return A substitution for the entity or `nil` */ - (nullable OFString *)string: (OFString *)string containsUnknownEntityNamed: (OFString *)entity; @end @interface OFString (XMLUnescaping) /*! * @brief Unescapes XML in the string. */ - (OFString *)stringByXMLUnescaping; |
︙ | ︙ |
Modified src/OFTarArchive.h from [90a272ca60] to [dede3f7288].
︙ | ︙ | |||
82 83 84 85 86 87 88 | * @warning Calling @ref nextEntry will invalidate all streams returned by the * previous entry! Reading from an invalidated stream will throw an * @ref OFReadFailedException! * * @return The next entry from the tar archive or `nil` if all entries have * been read */ | | | 82 83 84 85 86 87 88 89 90 91 92 | * @warning Calling @ref nextEntry will invalidate all streams returned by the * previous entry! Reading from an invalidated stream will throw an * @ref OFReadFailedException! * * @return The next entry from the tar archive or `nil` if all entries have * been read */ - (nullable OFTarArchiveEntry *)nextEntry; @end OF_ASSUME_NONNULL_END |
Modified src/OFXMLElement.h from [2f9d064e3a] to [449499d0ab].
︙ | ︙ | |||
274 275 276 277 278 279 280 | /*! * @brief Returns the attribute with the specified name. * * @param attributeName The name of the attribute * @return The attribute with the specified name */ | | | | | 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | /*! * @brief Returns the attribute with the specified name. * * @param attributeName The name of the attribute * @return The attribute with the specified name */ - (nullable OFXMLAttribute *)attributeForName: (OFString *)attributeName; /*! * @brief Returns the attribute with the specified name and namespace. * * @param attributeName The name of the attribute * @param attributeNS The namespace of the attribute * @return The attribute with the specified name and namespace */ - (nullable OFXMLAttribute *)attributeForName: (OFString *)attributeName namespace: (nullable OFString *)attributeNS; /*! * @brief Removes the attribute with the specified name. * * @param attributeName The name of the attribute */ - (void)removeAttributeForName: (OFString *)attributeName; |
︙ | ︙ | |||
395 396 397 398 399 400 401 | /*! * @brief Returns the first child element with the specified name. * * @param elementName The name of the element * @return The first child element with the specified name */ | | | | | 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 | /*! * @brief Returns the first child element with the specified name. * * @param elementName The name of the element * @return The first child element with the specified name */ - (nullable OFXMLElement *)elementForName: (OFString *)elementName; /*! * @brief Returns the child elements with the specified name. * * @param elementName The name of the elements * @return The child elements with the specified name */ - (OFArray OF_GENERIC(OFXMLElement *) *)elementsForName: (OFString *)elementName; /*! * @brief Returns the first child element with the specified name and namespace. * * @param elementName The name of the element * @param elementNS The namespace of the element * @return The first child element with the specified name and namespace */ - (nullable OFXMLElement *)elementForName: (OFString *)elementName namespace: (nullable OFString *)elementNS; /*! * @brief Returns the child elements with the specified name and namespace. * * @param elementName The name of the elements * @param elementNS The namespace of the elements * @return The child elements with the specified name and namespace |
︙ | ︙ |
Modified src/OFXMLParser.h from [66eb0bc029] to [8a20ab513e].
︙ | ︙ | |||
112 113 114 115 116 117 118 | * it is not known to the callback as well, in which case an exception will be * risen. * * @param parser The parser which found an unknown entity * @param entity The name of the entity the XML parser didn't know * @return A substitution for the entity or `nil` */ | | | | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | * it is not known to the callback as well, in which case an exception will be * risen. * * @param parser The parser which found an unknown entity * @param entity The name of the entity the XML parser didn't know * @return A substitution for the entity or `nil` */ - (nullable OFString *)parser: (OFXMLParser *)parser foundUnknownEntityNamed: (OFString *)entity; @end /*! * @class OFXMLParser OFXMLParser.h ObjFW/OFXMLParser.h * * @brief An event-based XML parser. * |
︙ | ︙ |