summaryrefslogtreecommitdiffstats
path: root/src/bfstd.c
Commit message (Collapse)AuthorAgeFilesLines
* bfstd: Check multiple chars at once for isascii()Tavian Barnes2023-08-071-3/+20
|
* bfstd: Speed up wordesc() by caching isprint()/isspace()Tavian Barnes2023-08-071-2/+29
|
* bfstd: Add an ASCII fast path to wordesc()Tavian Barnes2023-07-131-59/+100
|
* bfstd: Support wordesc() without allocatingTavian Barnes2023-07-131-38/+54
|
* bfstd: Quote the whole string the same way in wordesc()Tavian Barnes2023-07-131-77/+101
|
* bfstd: Use $'\n' etc. over $'\x0A'Tavian Barnes2023-07-131-5/+35
|
* bfstd: Escape '!' in wordesc()Tavian Barnes2023-07-131-2/+2
|
* wordesc: Also escape non-printable charsTavian Barnes2023-07-061-30/+115
|
* bfstd: Add a getprogname() wrapperTavian Barnes2023-06-241-0/+15
|
* alloc: New header for memory allocation utilitiesTavian Barnes2023-06-201-13/+0
|
* bfstd: New xmemdup() functionTavian Barnes2023-06-201-0/+8
|
* bfstd: New wordesc() function to shell-escape stringsTavian Barnes2023-06-161-0/+46
|
* bfstd: Add an aligned_alloc()/posix_memalign() wrapperTavian Barnes2023-06-141-0/+14
|
* Switch from assert() to bfs_assert()/bfs_verify()Tavian Barnes2023-05-181-2/+1
|
* Use bfs_bug("...") over assert(!"...")Tavian Barnes2023-05-181-1/+2
|
* config: Provide <stdalign.h> and <stdbool.h>Tavian Barnes2023-05-111-1/+0
| | | | In anticipation of C23, since those headers won't be necessary any more.
* style: Don't use tabs to indent preprocessor directivesTavian Barnes2023-05-031-3/+3
|
* bfstd: Fix declaration order to match the right standard headersTavian Barnes2023-04-071-74/+74
|
* 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/
* bfstd: New wrappers for dirname()/basename()Tavian Barnes2023-01-191-5/+40
|
* Fix includesTavian Barnes2022-11-061-1/+0
|
* bfstd: Rename from util and reorganize itTavian Barnes2022-11-061-0/+512