Index: src/OFApplication.h ================================================================== --- src/OFApplication.h +++ src/OFApplication.h @@ -183,11 +183,11 @@ * @param status The status with which the application will terminate */ + (void)terminateWithStatus: (int)status OF_NO_RETURN; /*! - * @brief Gets args and argv. + * @brief Gets argc and argv. * * @param argc A pointer where a pointer to argc should be stored * @param argv A pointer where a pointer to argv should be stored */ - (void)getArgumentCount: (int *_Nonnull *_Nonnull)argc Index: src/OFArray.h ================================================================== --- src/OFArray.h +++ src/OFArray.h @@ -256,11 +256,11 @@ /*! * @brief Returns the index of the first object that has the same address as the * specified object or `OF_NOT_FOUND` if it was not found. * * @param object The object whose index is returned - * @return The index of the first object that has the same aaddress as + * @return The index of the first object that has the same address as * the specified object or `OF_NOT_FOUND` if it was not found */ - (size_t)indexOfObjectIdenticalTo: (ObjectType)object; /*! Index: src/OFAutoreleasePool.h ================================================================== --- src/OFAutoreleasePool.h +++ src/OFAutoreleasePool.h @@ -48,11 +48,11 @@ * * This does not free the memory allocated to store pointers to the objects in * the pool, so reusing the pool does not allocate any memory until the previous * number of objects is exceeded. It behaves this way to optimize loops that * always work with the same or similar number of objects and call relaseObjects - * at the end of the loop, which is propably the most common case for + * at the end of the loop, which is probably the most common case for * releaseObjects. * * If a garbage collector is added in the future, it will tell the GC that now * is a good time to clean up, as this is often used after a lot of objects * have been added to the pool that should be released before the next iteration Index: src/OFDate.h ================================================================== --- src/OFDate.h +++ src/OFDate.h @@ -61,11 +61,11 @@ * format. * * The time zone used is UTC. See @ref dateWithLocalDateString:format: if you * want local time. * - * See the manpage for strftime for information on the format. + * See the man page for `strftime` for information on the format. * * @warning The format is currently limited to the following format specifiers: * %%a, %%b, %%d, %%e, %%H, %%m, %%M, %%S, %%y, %%Y, %%z, %%, %%n and * %%t. * @@ -78,11 +78,11 @@ /*! * @brief Creates a new OFDate with the specified string in the specified * format. * - * See the manpage for strftime for information on the format. + * See the man page for `strftime` for information on the format. * * @warning The format is currently limited to the following format specifiers: * %%a, %%b, %%d, %%e, %%H, %%m, %%M, %%S, %%y, %%Y, %%z, %%, %%n and * %%t. * @@ -135,11 +135,11 @@ * * The time zone used is UTC. If a time zone is specified anyway, an * OFInvalidFormatException is thrown. See @ref initWithLocalDateString:format: * if you want to specify a time zone. * - * See the manpage for strftime for information on the format. + * See the man page for `strftime` for information on the format. * * @warning The format is currently limited to the following format specifiers: * %%d, %%e, %%H, %%m, %%M, %%S, %%y, %%Y, %%, %%n and %%t. * * @param string The string describing the date @@ -153,11 +153,11 @@ * @brief Initializes an already allocated OFDate with the specified string in * the specified format. * * If no time zone is specified, local time is assumed. * - * See the manpage for strftime for information on the format. + * See the man page for `strftime` for information on the format. * * @warning The format is currently limited to the following format specifiers: * %%d, %%e, %%H, %%m, %%M, %%S, %%y, %%Y, %%, %%n and %%t. * * @param string The string describing the date @@ -273,21 +273,21 @@ - (uint16_t)localDayOfYear; /*! * @brief Creates a string of the date with the specified format. * - * See the manpage for strftime for information on the format. + * See the man page for `strftime` for information on the format. * * @param format The format for the date string * @return A new, autoreleased OFString */ - (OFString*)dateStringWithFormat: (OFConstantString*)format; /*! * @brief Creates a string of the local date with the specified format. * - * See the manpage for strftime for information on the format. + * See the man page for `strftime` for information on the format. * * @param format The format for the date string * @return A new, autoreleased OFString */ - (OFString*)localDateStringWithFormat: (OFConstantString*)format; Index: src/OFEnumerator.h ================================================================== --- src/OFEnumerator.h +++ src/OFEnumerator.h @@ -74,11 +74,11 @@ #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) # undef ObjectType #endif /* - * This needs to be exactly like this because it's hardcoded in the compiler. + * This needs to be exactly like this because it's hard-coded in the compiler. * * We need this bad check to see if we already imported Cocoa, which defines * this as well. */ /*! Index: src/OFFileManager.h ================================================================== --- src/OFFileManager.h +++ src/OFFileManager.h @@ -33,11 +33,11 @@ * @brief Returns the default file manager. */ + (OFFileManager*)defaultManager; /*! - * @brief Returns the path fo the current working directory. + * @brief Returns the path for the current working directory. * * @return The path of the current working directory */ - (OFString*)currentDirectoryPath; @@ -87,11 +87,11 @@ * @brief Returns an array with the items in the specified directory. * * @note `.` and `..` are not part of the returned array. * * @param path The path to the directory whose items should be returned - * @return An array of OFStrings with the items in the specified directory + * @return An array of OFString with the items in the specified directory */ - (OFArray OF_GENERIC(OFString*)*)contentsOfDirectoryAtPath: (OFString*)path; /*! * @brief Changes the current working directory. Index: src/OFHTTPClient.m ================================================================== --- src/OFHTTPClient.m +++ src/OFHTTPClient.m @@ -341,11 +341,11 @@ if (_socket != nil && [[_lastURL scheme] isEqual: scheme] && [[_lastURL host] isEqual: [URL host]] && [_lastURL port] == [URL port]) { /* * Set _socket to nil, so that in case of an error it won't be - * reused. If everything is successfull, we set _socket again + * reused. If everything is successful, we set _socket again * at the end. */ socket = [_socket autorelease]; _socket = nil; Index: src/OFHTTPServer.h ================================================================== --- src/OFHTTPServer.h +++ src/OFHTTPServer.h @@ -124,11 +124,11 @@ * @return A new HTTP server */ + (instancetype)server; /*! - * @brief Starts the HTTP server in the current thread's runloop. + * @brief Starts the HTTP server in the current thread's run loop. */ - (void)start; /*! * @brief Stops the HTTP server, meaning it will not accept any new incoming Index: src/OFKernelEventObserver_select.m ================================================================== --- src/OFKernelEventObserver_select.m +++ src/OFKernelEventObserver_select.m @@ -156,11 +156,11 @@ writeFDs = _writeFDs; #endif /* * We cast to int before assigning to tv_usec in order to avoid a - * warning with Apple GCC on PPC. POSIX defines this as suseconds_t, + * warning with Apple GCC on PowerPC. POSIX defines this as suseconds_t, * however, this is not available on Win32. As an int should always * satisfy the required range, we just cast to int. */ #ifndef OF_WINDOWS timeout.tv_sec = (time_t)timeInterval; Index: src/OFMapTable.h ================================================================== --- src/OFMapTable.h +++ src/OFMapTable.h @@ -248,12 +248,12 @@ * @return The next object */ - (void*)nextObject; /*! - * @brief Resets the enumerator, so the next call to nextKey returns the first - * key again. + * @brief Resets the enumerator, so the next call to @ref nextKey returns the + * first key again. */ - (void)reset; @end OF_ASSUME_NONNULL_END Index: src/OFMutableString.h ================================================================== --- src/OFMutableString.h +++ src/OFMutableString.h @@ -88,12 +88,13 @@ length: (size_t)cStringLength; /*! * @brief Appends a formatted string to the OFMutableString. * - * See printf for the format syntax. As an addition, %@ is available as format - * specifier for objects, %C for of_unichar_t and %S for const of_unichar_t*. + * See `printf` for the format syntax. As an addition, `%@` is available as + * format specifier for objects, `%C` for `of_unichar_t` and `%S` for + * `const of_unichar_t*`. * * @param format A format string which generates the string to append */ - (void)appendFormat: (OFConstantString*)format, ...; Index: src/OFMutableString_UTF8.m ================================================================== --- src/OFMutableString_UTF8.m +++ src/OFMutableString_UTF8.m @@ -614,11 +614,11 @@ /* * If the new string is bigger, we need to resize it first so we can * memmove() the rest of the string to the end. * * We must not resize the string if the new string is smaller, because - * then we can't memove() the rest of the string forward as the rest is + * then we can't memmove() the rest of the string forward as the rest is * lost due to the resize! */ if (newCStringLength > _s->cStringLength) _s->cString = [self resizeMemory: _s->cString size: newCStringLength + 1]; Index: src/OFObject.h ================================================================== --- src/OFObject.h +++ src/OFObject.h @@ -218,11 +218,11 @@ /*! * @brief Returns a boolean whether the object responds to the specified * selector. * - * @param selector The selector which should be checked for respondance + * @param selector The selector which should be checked for respondence * @return A boolean whether the objects responds to the specified selector */ - (bool)respondsToSelector: (SEL)selector; /*! @@ -464,11 +464,11 @@ + (Class)superclass; /*! * @brief Checks whether instances of the class respond to a given selector. * - * @param selector The selector which should be checked for respondance + * @param selector The selector which should be checked for respondence * @return A boolean whether instances of the class respond to the specified * selector */ + (bool)instancesRespondToSelector: (SEL)selector; @@ -643,11 +643,11 @@ - (OFString*)description; /*! * @brief Allocates memory and stores it in the object's memory pool. * - * It will be free'd automatically when the object is deallocated. + * 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 */ - (void*)allocMemoryWithSize: (size_t)size; @@ -654,11 +654,11 @@ /*! * @brief Allocates memory for the specified number of items and stores it in * the object's memory pool. * - * It will be free'd automatically when the object is deallocated. + * 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 */ Index: src/OFSeekableStream.h ================================================================== --- src/OFSeekableStream.h +++ src/OFSeekableStream.h @@ -43,11 +43,11 @@ * @brief A stream that supports seeking. * * @note If you want to subclass this, override * @ref lowlevelSeekToOffset:whence:. OFSeekableStream uses this method * and makes it work together with the caching of OFStream. If you - * override this methods without the lowlevel prefix, you *will* break + * override this methods without the `lowlevel` prefix, you *will* break * caching, get broken results and seek to the wrong position! */ @interface OFSeekableStream: OFStream /*! * @brief Seeks to the specified absolute offset. Index: src/OFStdIOStream_Win32Console.m ================================================================== --- src/OFStdIOStream_Win32Console.m +++ src/OFStdIOStream_Win32Console.m @@ -25,11 +25,11 @@ * write() suddenly returns the number of characters - instead of bytes - * written and read() just returns 0 as soon as a Unicode character is being * read. * * Therefore, instead of just using the UTF-8 codepage, this captures all reads - * and writes to of_std{in,out,err} on the lowlevel, interprets the buffer as + * and writes to of_std{in,out,err} on the low level, interprets the buffer as * UTF-8 and converts to / from UTF-16 to use ReadConsoleW() / WriteConsoleW(). * Doing so is safe, as the console only supports text anyway and thus it does * not matter if binary gets garbled by the conversion (e.g. because invalid * UTF-8 gets converted to U+FFFD). * Index: src/OFStream.h ================================================================== --- src/OFStream.h +++ src/OFStream.h @@ -80,11 +80,11 @@ * @note If you want to subclass this, override * @ref lowlevelReadIntoBuffer:length:, @ref lowlevelWriteBuffer:length: * and @ref lowlevelIsAtEndOfStream, but nothing else, as those are are * the methods that do the actual work. OFStream uses those for all other * methods and does all the caching and other stuff for you. If you - * override these methods without the lowlevel prefix, you *will* break + * override these methods without the `lowlevel` prefix, you *will* break * caching and get broken results! */ @interface OFStream: OFObject < #ifdef OF_HAVE_SOCKETS OFReadyForReadingObserving, OFReadyForWritingObserving, @@ -143,11 +143,11 @@ - (void)readIntoBuffer: (void*)buffer exactLength: (size_t)length; #ifdef OF_HAVE_SOCKETS /*! - * @brief Asyncronously reads *at most* size bytes from the stream into a + * @brief Asynchronously reads *at most* size bytes from the stream into a * buffer. * * On network streams, this might read less than the specified number of bytes. * If you want to read exactly the specified number of bytes, use * @ref asyncReadIntoBuffer:exactLength:block:. Note that a read can even @@ -156,11 +156,11 @@ * * @note The stream must implement @ref fileDescriptorForReading and return a * valid file descriptor in order for this to work! * * @param buffer The buffer into which the data is read. - * The buffer must not be free'd before the async read completed! + * The buffer must not be freed before the async read completed! * @param length The length of the data that should be read at most. * The buffer *must* be *at least* this big! * @param target The target on which the selector should be called when the * data has been received. If the method returns true, it will be * called again with the same buffer and maximum length when more @@ -175,11 +175,11 @@ length: (size_t)length target: (id)target selector: (SEL)selector; /*! - * @brief Asyncronously reads exactly the specified length bytes from the + * @brief Asynchronously reads exactly the specified length bytes from the * stream into a buffer. * * Unlike @ref asyncReadIntoBuffer:length:target:selector:, this method does * not call the method when less than the specified length has been read - * instead, it waits until it got exactly the specified length, the stream has @@ -206,11 +206,11 @@ target: (id)target selector: (SEL)selector; # ifdef OF_HAVE_BLOCKS /*! - * @brief Asyncronously reads *at most* ref size bytes from the stream into a + * @brief Asynchronously reads *at most* ref size bytes from the stream into a * buffer. * * On network streams, this might read less than the specified number of bytes. * If you want to read exactly the specified number of bytes, use * @ref asyncReadIntoBuffer:exactLength:block:. Note that a read can even @@ -219,11 +219,11 @@ * * @note The stream must implement @ref fileDescriptorForReading and return a * valid file descriptor in order for this to work! * * @param buffer The buffer into which the data is read. - * The buffer must not be free'd before the async read completed! + * The buffer must not be freed before the async read completed! * @param length The length of the data that should be read at most. * The buffer *must* be *at least* this big! * @param block The block to call when the data has been received. * If the block returns true, it will be called again with the same * buffer and maximum length when more data has been received. If @@ -233,11 +233,11 @@ - (void)asyncReadIntoBuffer: (void*)buffer length: (size_t)length block: (of_stream_async_read_block_t)block; /*! - * @brief Asyncronously reads exactly the specified length bytes from the + * @brief Asynchronously reads exactly the specified length bytes from the * stream into a buffer. * * Unlike @ref asyncReadIntoBuffer:length:block:, this method does not invoke * the block when less than the specified length has been read - instead, it * waits until it got exactly the specified length, the stream has ended or an @@ -607,11 +607,11 @@ */ - (nullable OFString*)readLineWithEncoding: (of_string_encoding_t)encoding; #ifdef OF_HAVE_SOCKETS /*! - * @brief Asyncronously reads until a newline, `\0`, end of stream or an + * @brief Asynchronously reads until a newline, `\0`, end of stream or an * exception occurs. * * @note The stream must implement @ref fileDescriptorForReading and return a * valid file descriptor in order for this to work! * @@ -626,11 +626,11 @@ */ - (void)asyncReadLineWithTarget: (id)target selector: (SEL)selector; /*! - * @brief Asyncronously reads with the specified encoding until a newline, + * @brief Asynchronously reads with the specified encoding until a newline, * `\0`, end of stream or an exception occurs. * * @note The stream must implement @ref fileDescriptorForReading and return a * valid file descriptor in order for this to work! * @@ -648,11 +648,11 @@ target: (id)target selector: (SEL)selector; # ifdef OF_HAVE_BLOCKS /*! - * @brief Asyncronously reads until a newline, `\0`, end of stream or an + * @brief Asynchronously reads until a newline, `\0`, end of stream or an * exception occurs. * * @note The stream must implement @ref fileDescriptorForReading and return a * valid file descriptor in order for this to work! * @@ -663,11 +663,11 @@ * block. */ - (void)asyncReadLineWithBlock: (of_stream_async_read_line_block_t)block; /*! - * @brief Asyncronously reads with the specified encoding until a newline, + * @brief Asynchronously reads with the specified encoding until a newline, * `\0`, end of stream or an exception occurs. * * @note The stream must implement @ref fileDescriptorForReading and return a * valid file descriptor in order for this to work! * @@ -682,12 +682,12 @@ block: (of_stream_async_read_line_block_t)block; # endif #endif /*! - * @brief Tries to read a line from the stream (see readLine) and returns `nil` - * if no complete line has been received yet. + * @brief Tries to read a line from the stream (see @ref readLine) and returns + * `nil` if no complete line has been received yet. * * @return The line that was read, autoreleased, or `nil` if the line is not * complete yet */ - (nullable OFString*)tryReadLine; @@ -748,11 +748,11 @@ */ - (nullable OFString*)tryReadTillDelimiter: (OFString*)delimiter encoding: (of_string_encoding_t)encoding; /*! - * @brief Returns a boolen whether writes are buffered. + * @brief Returns a boolean whether writes are buffered. * * @return A boolean whether writes are buffered */ - (bool)isWriteBuffered; Index: src/OFString+JSONValue.h ================================================================== --- src/OFString+JSONValue.h +++ src/OFString+JSONValue.h @@ -34,11 +34,11 @@ * http://json5.org/ for more details. * * @warning Although not specified by the JSON specification, this can also * return primitives like strings and numbers. The rationale behind * this is that most JSON parsers allow JSON data just consisting of a - * single primitive, leading to realworld JSON files sometimes only + * single primitive, leading to real world JSON files sometimes only * consisting of a single primitive. Therefore, you should not make any * assumptions about the object returned by this method if you don't * want your program to terminate due to a message not understood, but * instead check the returned object using @ref isKindOfClass:. * @@ -53,11 +53,11 @@ * http://json5.org/ for more details. * * @warning Although not specified by the JSON specification, this can also * return primitives like strings and numbers. The rationale behind * this is that most JSON parsers allow JSON data just consisting of a - * single primitive, leading to realworld JSON files sometimes only + * single primitive, leading to real world JSON files sometimes only * consisting of a single primitive. Therefore, you should not make any * assumptions about the object returned by this method if you don't * want your program to terminate due to a message not understood, but * instead check the returned object using @ref isKindOfClass:. * Index: src/OFString+JSONValue.m ================================================================== --- src/OFString+JSONValue.m +++ src/OFString+JSONValue.m @@ -183,11 +183,11 @@ break; case 't': buffer[i++] = '\t'; (*pointer)++; break; - /* Parse unicode escape sequence */ + /* Parse Unicode escape sequence */ case 'u':; of_char16_t c1, c2; of_unichar_t c; size_t l; Index: src/OFString.h ================================================================== --- src/OFString.h +++ src/OFString.h @@ -172,15 +172,15 @@ * @return A new autoreleased OFString */ + (instancetype)stringWithString: (OFString*)string; /*! - * @brief Creates a new OFString from a unicode string with the specified + * @brief Creates a new OFString from a Unicode string with the specified * length. * - * @param characters An array of unicode characters - * @param length The length of the unicode character array + * @param characters An array of Unicode characters + * @param length The length of the Unicode character array * @return A new autoreleased OFString */ + (instancetype)stringWithCharacters: (const of_unichar_t*)characters length: (size_t)length; @@ -405,15 +405,15 @@ * @return An initialized OFString */ - initWithString: (OFString*)string; /*! - * @brief Initializes an already allocated OFString with a unicode string with + * @brief Initializes an already allocated OFString with a Unicode string with * the specified length. * - * @param characters An array of unicode characters - * @param length The length of the unicode character array + * @param characters An array of Unicode characters + * @param length The length of the Unicode character array * @return An initialized OFString */ - initWithCharacters: (const of_unichar_t*)characters length: (size_t)length; Index: src/OFString_UTF8.h ================================================================== --- src/OFString_UTF8.h +++ src/OFString_UTF8.h @@ -22,13 +22,13 @@ { @public /* * A pointer to the actual data. * - * Since constant strings don't have _storage, they have to malloc it - * on the first access. Strings created at runtime just set the pointer - * to &_storage. + * Since constant strings don't have `_storage`, they have to allocate + * it on the first access. Strings created at runtime just set the + * pointer to `&_storage`. */ struct of_string_utf8_ivars { char *cString; size_t cStringLength; bool isUTF8; Index: src/OFSystemInfo.h ================================================================== --- src/OFSystemInfo.h +++ src/OFSystemInfo.h @@ -177,14 +177,14 @@ #if defined(OF_POWERPC) || defined(OF_POWERPC64) /*! * @brief Returns whether the CPU and OS support AltiVec. * - * @note This method is only available on PowerPC and PowerPC64. + * @note This method is only available on PowerPC and PowerPC 64. * * @return Whether the CPU and OS support AltiVec */ + (bool)supportsAltiVec; #endif @end OF_ASSUME_NONNULL_END Index: src/OFTCPSocket+SOCKS5.m ================================================================== --- src/OFTCPSocket+SOCKS5.m +++ src/OFTCPSocket+SOCKS5.m @@ -118,11 +118,11 @@ /* Skip the rest of the reply */ switch (reply[3]) { case 1: /* IPv4 */ recv_exact(self, _socket, reply, 4); break; - case 3: /* Domainname */ + case 3: /* Domain name */ recv_exact(self, _socket, reply, 1); recv_exact(self, _socket, reply, reply[0]); break; case 4: /* IPv6 */ recv_exact(self, _socket, reply, 16); Index: src/OFTCPSocket.h ================================================================== --- src/OFTCPSocket.h +++ src/OFTCPSocket.h @@ -118,11 +118,11 @@ - (void)connectToHost: (OFString*)host port: (uint16_t)port; #ifdef OF_HAVE_THREADS /*! - * @brief Asyncronously connect the OFTCPSocket to the specified destination. + * @brief Asynchronously connect the OFTCPSocket to the specified destination. * * @param host The host to connect to * @param port The port on the host to connect to * @param target The target on which to call the selector once the connection * has been established @@ -134,11 +134,11 @@ target: (id)target selector: (SEL)selector; # ifdef OF_HAVE_BLOCKS /*! - * @brief Asyncronously connect the OFTCPSocket to the specified destination. + * @brief Asynchronously connect the OFTCPSocket to the specified destination. * * @param host The host to connect to * @param port The port on the host to connect to * @param block The block to execute once the connection has been established */ @@ -178,11 +178,11 @@ * @return An autoreleased OFTCPSocket for the accepted connection. */ - (instancetype)accept; /*! - * @brief Asyncronously accept an incoming connection. + * @brief Asynchronously accept an incoming connection. * * @param target The target on which to execute the selector when a new * connection has been accepted. The method returns whether the * next incoming connection should be accepted by the specified * block as well. @@ -193,11 +193,11 @@ - (void)asyncAcceptWithTarget: (id)target selector: (SEL)selector; #ifdef OF_HAVE_BLOCKS /*! - * @brief Asyncronously accept an incoming connection. + * @brief Asynchronously accept an incoming connection. * * @param block The block to execute when a new connection has been accepted. * Returns whether the next incoming connection should be accepted * by the specified block as well. */ Index: src/OFTLSSocket.h ================================================================== --- src/OFTLSSocket.h +++ src/OFTLSSocket.h @@ -39,11 +39,11 @@ * specified. * * @param socket The socket which wants to know if it should accept the received * certificate * @param certificate A dictionary with the fields of the received certificate - * @return Whether the TLS socket should accept the received certificatechain + * @return Whether the TLS socket should accept the received certificate chain */ - (bool)socket: (id )socket shouldAcceptCertificate: (OFDictionary*)certificate; @end Index: src/OFThread.h ================================================================== --- src/OFThread.h +++ src/OFThread.h @@ -169,19 +169,19 @@ # endif /*! * @brief The main routine of the thread. You need to reimplement this! * - * It can access the object passed to the threadWithObject or initWithObject - * method using the instance variable named object. + * It can access the object passed to the @ref threadWithObject: or + * @ref initWithObject: method using the instance variable named object. * * @return The object the join method should return when called for this thread */ - (nullable id)main; /*! - * @brief This routine is exectued when the thread's main method has finished + * @brief This routine is executed when the thread's main method has finished * executing or terminate has been called. * * @note Be sure to call [super handleTermination]! */ - (void)handleTermination OF_REQUIRES_SUPER; @@ -206,11 +206,11 @@ - (OFRunLoop*)runLoop; /*! * @brief Returns the name of the thread or `nil` if none has been set. * - * @return The name of the thread or nik if none has been set + * @return The name of the thread or nil if none has been set */ - (nullable OFString*)name; /*! * @brief Sets the name for the thread. @@ -221,11 +221,11 @@ /*! * @brief Returns the priority of the thread. * * This is a value between -1.0 (meaning lowest priority that still schedules) - * and +1.0 (meaning highest priority that still allows getting preemptted) + * and +1.0 (meaning highest priority that still allows getting preempted) * with normal priority being 0.0 (meaning being the same as the main thread). * * @return The priority of the thread */ - (float)priority; @@ -236,11 +236,11 @@ * @note This has to be set before the thread is started! * * @param priority The priority of the thread. This is a value between -1.0 * (meaning lowest priority that still schedules) and +1.0 * (meaning highest priority that still allows getting - * preemptted) with normal priority being 0.0 (meaning being + * preempted) with normal priority being 0.0 (meaning being * the same as the main thread). */ - (void)setPriority: (float)priority; /*! Index: src/OFThreadPool.h ================================================================== --- src/OFThreadPool.h +++ src/OFThreadPool.h @@ -85,11 +85,11 @@ * @brief Execute the specified selector on the specified target with the * specified object as soon as a thread is ready. * * @param target The target on which to perform the selector * @param selector The selector to perform on the target - * @param object THe object with which the selector is performed on the target + * @param object The object with which the selector is performed on the target */ - (void)dispatchWithTarget: (id)target selector: (SEL)selector object: (nullable id)object; Index: src/OFTimer.h ================================================================== --- src/OFTimer.h +++ src/OFTimer.h @@ -295,11 +295,11 @@ /*! * @brief Sets the next date at which the timer will fire. * * If the timer is already scheduled in a run loop, it will be rescheduled. * Note that rescheduling is an expensive operation, though it still might be - * preferrable to reschedule instead of invalidating the timer and creating a + * preferable to reschedule instead of invalidating the timer and creating a * new one. * * @param fireDate The next date at which the timer will fire */ - (void)setFireDate: (OFDate*)fireDate; Index: src/OFUDPSocket.h ================================================================== --- src/OFUDPSocket.h +++ src/OFUDPSocket.h @@ -139,11 +139,11 @@ * @brief Asynchronously resolves the specified host and creates an address for * the host / port pair. * * @param host The host to resolve * @param port The port for the resulting address - * @param block THe block to execute once the host has been resolved + * @param block The block to execute once the host has been resolved */ + (void)asyncResolveAddressForHost: (OFString*)host port: (uint16_t)port block: (of_udp_socket_async_resolve_block_t)block; # endif @@ -244,15 +244,15 @@ - (void)sendBuffer: (const void*)buffer length: (size_t)length receiver: (const of_udp_socket_address_t*)receiver; /*! - * @brief Cancels all pending asyncronous requests on the socket. + * @brief Cancels all pending asynchronous requests on the socket. * * @warning You are not allowed to call this inside the handler of an - * asyncronous request, as this would cancel the asyncronous request - * that is currently being handled! To cancel all pending asyncronous + * asynchronous request, as this would cancel the asynchronous request + * that is currently being handled! To cancel all pending asynchronous * requests after the handler has finished executing, you may schedule * a timer for this method with a timeout of 0 from inside the handler. */ - (void)cancelAsyncRequests; Index: src/OFXMLCDATA.h ================================================================== --- src/OFXMLCDATA.h +++ src/OFXMLCDATA.h @@ -35,14 +35,14 @@ * @return A new OFXMLCDATA */ + (instancetype)CDATAWithString: (OFString*)string; /*! - * @brief Initializes an alredy allocated OFXMLCDATA with the specified string. + * @brief Initializes an already allocated OFXMLCDATA with the specified string. * * @param string The string value for the CDATA * @return An initialized OFXMLCDATA */ - initWithString: (OFString*)string; @end OF_ASSUME_NONNULL_END Index: src/OFXMLElement.m ================================================================== --- src/OFXMLElement.m +++ src/OFXMLElement.m @@ -561,11 +561,11 @@ cString[i++] = '\''; objc_autoreleasePoolPop(pool2); } - /* Childen */ + /* Children */ if (_children != nil) { OFDataArray *tmp = [OFDataArray dataArray]; bool indent; if (indentation > 0) { Index: src/OFXMLParser.h ================================================================== --- src/OFXMLParser.h +++ src/OFXMLParser.h @@ -126,11 +126,11 @@ * @class OFXMLParser OFXMLParser.h ObjFW/OFXMLParser.h * * @brief An event-based XML parser. * * OFXMLParser is an event-based XML parser which calls the delegate's callbacks - * as soon asit finds something, thus suitable for streams as well. + * as soon as it finds something, thus suitable for streams as well. */ @interface OFXMLParser: OFObject { id _delegate; enum { Index: src/OFZIPArchiveEntry.h ================================================================== --- src/OFZIPArchiveEntry.h +++ src/OFZIPArchiveEntry.h @@ -28,49 +28,49 @@ /*! * @brief Attribute compatibility part of ZIP versions. */ enum of_zip_archive_entry_attribute_compatibility { - /** MS-DOS and OS/2 */ + /*! MS-DOS and OS/2 */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_MSDOS = 0, - /** Amiga */ + /*! Amiga */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_AMIGA = 1, - /** OpenVMS */ + /*! OpenVMS */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_OPENVMS = 2, - /** UNIX */ + /*! UNIX */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_UNIX = 3, - /** VM/CMS */ + /*! VM/CMS */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_VM_CMS = 4, - /** Atari ST */ + /*! Atari ST */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_ATARI_ST = 5, - /** OS/2 HPFS */ + /*! OS/2 HPFS */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_OS2_HPFS = 6, - /** Macintosh */ + /*! Macintosh */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_MACINTOSH = 7, - /** Z-System */ + /*! Z-System */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_Z_SYSTEM = 8, - /** CP/M */ + /*! CP/M */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_CP_M = 9, - /** Windows NTFS */ + /*! Windows NTFS */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_WINDOWS_NTFS = 10, - /** MVS (OS/390 - Z/OS) */ + /*! MVS (OS/390 - Z/OS) */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_MVS = 11, - /** VSE */ + /*! VSE */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_VSE = 12, - /** Acorn Risc */ + /*! Acorn Risc */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_ACORN_RISC = 13, - /** VFAT */ + /*! VFAT */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_VFAT = 14, - /** Alternate MVS */ + /*! Alternate MVS */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_ALTERNATE_MVS = 15, - /** BeOS */ + /*! BeOS */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_BEOS = 16, - /** Tandem */ + /*! Tandem */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_TANDEM = 17, - /** OS/400 */ + /*! OS/400 */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_OS_400 = 18, - /** OS X (Darwin) */ + /*! OS X (Darwin) */ OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_OS_X = 19 }; enum { OF_ZIP_ARCHIVE_ENTRY_EXTRA_FIELD_ZIP64 = 0x0001 Index: src/base64.h ================================================================== --- src/base64.h +++ src/base64.h @@ -29,12 +29,12 @@ @class OFDataArray; #ifdef __cplusplus extern "C" { #endif -extern OFString *of_base64_encode(const void*, size_t); +extern OFString* of_base64_encode(const void*, size_t); extern bool of_base64_decode(OFDataArray*, const char*, size_t); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END Index: src/resolver.h ================================================================== --- src/resolver.h +++ src/resolver.h @@ -45,11 +45,11 @@ * struct * @param protocol The protocol that should be inserted into the resulting * address struct * * @return An array of results. The list is terminated by NULL and should be - * free'd after use. + * freed after use. */ extern of_resolver_result_t *_Nullable *_Nonnull of_resolve_host(OFString *host, uint16_t port, int protocol); /*!