summaryrefslogtreecommitdiffstats
path: root/src/dstring.h
Commit message (Collapse)AuthorAgeFilesLines
* dstring: Add an infallible dstrshrink() functionTavian Barnes2024-10-171-0/+27
| | | | And mark the fallible ones with _nodiscard.
* Write @arg instead of @param arg in doc commentsTavian Barnes2024-10-011-52/+52
|
* dstring: New dstrepeat() functionTavian Barnes2024-09-141-0/+5
|
* build: Move feature test macros to prelude.hTavian Barnes2024-08-281-2/+0
| | | | | | This replaces the explicit CPPFLAGS list in flags.mk with just `-include src/prelude.h`, shortening our compiler command lines and allowing them to be easily documented.
* prelude: Split bfs-specific utilities into new bfs.h headerTavian Barnes2024-08-281-0/+3
|
* prelude: Simplify attributesTavian Barnes2024-07-281-9/+9
|
* dstring: Make dstrprintf() return dchar *Tavian Barnes2024-05-081-2/+2
|
* Rename config.h to prelude.hTavian Barnes2024-04-191-1/+1
|
* config: s/attr_format/attr_printf/Tavian Barnes2023-12-181-4/+4
|
* config: New variadic attr(...) macroTavian Barnes2023-12-181-9/+9
|
* dstring: Use the new REALLOC_FLEX() macroTavian Barnes2023-11-231-6/+6
| | | | | | While I'm at it, switch the capacity to include the NUL byte, so that it could be used by __counted_by() for example. And fix a theoretical provenance issue.
* config: Add (de)allocator attributesTavian Barnes2023-11-091-8/+13
|
* config: s/BFS_FORMATTER/attr_format/Tavian Barnes2023-11-091-4/+4
|
* dstring: Limit the special dchar typedef to lint buildsTavian Barnes2023-10-041-7/+2
| | | | | Clang still thinks that alignof(dstr[1]) == 2, so out of an abundance of caution, don't mess with dchar alignment in normal builds.
* dstring: New dchar typedef for dynamic stringsTavian Barnes2023-09-261-22/+41
|
* bfstd: Support wordesc() without allocatingTavian Barnes2023-07-131-0/+31
|
* dstring: Add some exact-size utility functionsTavian Barnes2023-06-291-5/+94
|
* Replace license boilerplate with SPDX tagsTavian Barnes2023-01-251-15/+2
| | | | | | | And while I'm at it, remove years from copyright declarations. Link: https://spdx.dev/about/ Link: https://daniel.haxx.se/blog/2023/01/08/copyright-without-years/
* Add BFS_FORMATTER() to vprintf()-type functions tooTavian Barnes2022-12-081-0/+2
|
* config: Split out some of util.h into a new headerTavian Barnes2022-11-061-1/+1
|
* Source / Include Folder (#88)トトも2022-04-161-0/+194
Moved Source Files Into `src` Folder