Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation: - 'siMemory' section is moved above the 'siAllocator' section. - `si_utf<8/16>ToUtf<16/8>Str` functions now first take the input as an argument rather than the output to make it consistent with other sili functions. - Path & file functions have had their documentation reworked. - `siIOType` -> `siIoType`. - `SI_IO_TYPE_<NAME>` -> `siIoType_<Name>`. - Directory functions have been given documentation. - `si_numLeadingBit` function has been split into `si_numLeadingZeros` and `si_numLeadingOnes`. - `si_cpuProcessorCount` has been given documentation. - Print functions have had their documentation reworked. - `siPrintColorAnsi` -> `siPrintColor3bit` Additions: - New memory alignment functions: `si_isPowerOfTwo` and `si_alignForward`. - New memory pointer functions: `si_pointerAdd`, `si_pointerSub`, `si_pointerAddConst`, `si_pointerSubConst` and `si_pointerDiff`. - `SI_ERROR_CHECK_EX` is changed to take an action instead of a return value, making it more versatile. - New siArray macro: `SI_BUF_STACK`. - `tests/bit.c` now has a test for `si_numLeadingZeros`/`si_numLeadingOnes`. - `si_directoryClose` function has been added. - A few specific warnings were fixed. Bug fixes: - `si_utf16Decode` returns the correct UTF-8 length. - `si_numLeadingZeros` and `si_numLeadingOnes` functions now return correct results. - `si_directoryPollEntryEx` is less bug-prone now. Removals: - String function `si_stringMakeFmt`. - Every `siFilePermissions` enumerators and functions, including `si_pathCreateFolderEx`. - `SI_IO_TYPE_ANY`, `SI_IO_TYPE_BITS` and `SI_IO_TYPE_BITS_ALL`. - `si_timeStampPrintSinceEx` function declaration. - `si_alignCeilEx` has been removed for `si_alignForward`.
- Loading branch information