summaryrefslogtreecommitdiffstats
path: root/color.h
Commit message (Collapse)AuthorAgeFilesLines
* expr: Store auxilliary data in a unionTavian Barnes2022-03-251-2/+2
| | | | And rename struct expr to bfs_expr.
* color: New %pF format for file namesTavian Barnes2021-10-091-0/+1
|
* Don't truncate files until we know they're not duplicatesTavian Barnes2021-09-261-17/+11
|
* color: Add an intermediate bufferTavian Barnes2020-11-281-0/+2
| | | | | | | cfprintf() on an unbuffered file like stderr was causing a lot of write() calls since every format specifier resulted in a separate fwrite(). This led to inefficiency and bad interleaving. Add our own dstring buffer to smooth it out.
* Include what I useTavian Barnes2020-11-121-1/+0
| | | | Thanks to https://github.com/include-what-you-use/include-what-you-use
* diag: Unify debug printingTavian Barnes2020-06-021-1/+3
|
* bftw: Pass a const struct BFTW * to the callbackTavian Barnes2019-05-051-2/+2
|
* bftw: Add a caching stat() API to struct BFTWTavian Barnes2019-05-041-2/+2
|
* Add some documentation commentsTavian Barnes2019-02-091-0/+4
|
* color: Check format strings + args for cfprintf()Tavian Barnes2019-01-021-4/+7
| | | | | | %{cc} is now ${cc} to avoid warnings about an unrecognized format specifier, and %P and %L are now %pP and %pL to make them look more like standard format strings.
* diag: Unify diagnostic formattingTavian Barnes2019-01-021-0/+6
| | | | | | This adds a bfs: prefix to error/warning messages for consistency with other command line tools, and leaves only the "error:"/"warning:" part colored like GCC. It also uniformly adds full stops after messages.
* Update copyright datesTavian Barnes2018-09-241-1/+1
|
* color: Fix a doc comment typoTavian Barnes2018-08-161-1/+1
|
* color: Implement %m for cfprintf()Tavian Barnes2017-11-131-0/+1
|
* Implement cost-based optimizationTavian Barnes2017-08-271-0/+2
|
* Re-license under the BSD Zero Clause LicenseTavian Barnes2017-07-271-10/+15
|
* Add colors to -D treeTavian Barnes2017-05-151-0/+1
|
* Release 1.01.0Tavian Barnes2017-04-241-1/+1
|
* Color link targets for -lsTavian Barnes2017-03-161-0/+1
| | | | Fixes #18.
* Give struct expr a CFILE* instead of just a FILE*Tavian Barnes2017-03-161-0/+14
| | | | This unifies the behaviour of -print and -fprint /dev/stdout.
* Make a printf()-style API for colored messagesTavian Barnes2017-03-111-31/+36
|
* Update some copyright dates.Tavian Barnes2016-11-241-1/+1
|
* Check for errors in -print and friends.Tavian Barnes2016-10-161-3/+6
|
* s/color_table/colors/.Tavian Barnes2016-02-141-6/+6
|
* Refactor color handling.Tavian Barnes2016-02-141-6/+24
| | | | The main benefit is colored warnings/errors during parsing.
* Don't modify the result of getenv().Tavian Barnes2016-02-141-1/+1
|
* Don't use typedefs to avoid struct/enum tags.Tavian Barnes2016-02-041-5/+5
|
* bftw() interface improvements:Tavian Barnes2015-09-261-6/+4
| | | | | | - Use enums instead of ints where it makes sense - Move the file path inside struct BFTW - Expose a fd and relative path for *at() calls
* Implement -delete.Tavian Barnes2015-09-081-3/+3
| | | | Related to #5.
* Print the root file/directory too.Tavian Barnes2015-09-021-4/+3
|
* Recover from errors in diropen().Tavian Barnes2015-07-251-0/+18
| | | | Fixes #4.
* Add initial support for colorized output.Tavian Barnes2015-06-201-0/+46