summaryrefslogtreecommitdiffstats
path: root/src/diag.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix includesTavian Barnes2024-08-291-1/+0
|
* build: Move feature test macros to prelude.hTavian Barnes2024-08-281-1/+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-2/+3
|
* expr: New for_expr macroTavian Barnes2024-05-231-1/+1
|
* Stop using %mTavian Barnes2024-05-201-15/+1
|
* diag: New helpers to include xstrerror(errno) automaticallyTavian Barnes2024-05-171-0/+4
|
* Rename config.h to prelude.hTavian Barnes2024-04-191-1/+1
|
* Re-run include-what-you-useTavian Barnes2024-03-111-1/+1
|
* diag: New bfs_diag() macroTavian Barnes2024-02-291-3/+14
|
* expr: Make expressions variadicTavian Barnes2024-01-071-3/+2
| | | | | | | | | Rather than only unary/binary expressions, we now support an arbitrary number of children. The optimizer has been re-written almost completely and now supports optimal reordering of longer expression chains, rather than just arm-swapping. Fixes #85.
* diag: Move enum debug_flags out of ctx.hTavian Barnes2023-10-121-0/+25
|
* Formatting fixesTavian Barnes2023-09-271-4/+4
|
* dstring: New dchar typedef for dynamic stringsTavian Barnes2023-09-261-1/+1
|
* bfstd: Support wordesc() without allocatingTavian Barnes2023-07-131-13/+16
|
* bfstd: Add a getprogname() wrapperTavian Barnes2023-06-241-11/+1
|
* diag: New bfs_loc type for source locationsTavian Barnes2023-06-221-1/+17
|
* diag: Shell-escape arguments for argv warnings/errorsTavian Barnes2023-06-161-3/+20
|
* Switch from assert() to bfs_assert()/bfs_verify()Tavian Barnes2023-05-181-2/+1
|
* diag: New bfs_abort() and bfs_bug() macrosTavian Barnes2023-05-181-1/+9
|
* 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-3/+8
|
* expr: Rename bfs_expr_has_children() to _is_parent()Tavian Barnes2022-12-051-1/+1
|
* expr: Remove the synthetic flagTavian Barnes2022-11-291-6/+8
| | | | | Only diagnostics cares about this, and we can just check if the pointers are equal.
* Fix includesTavian Barnes2022-11-061-0/+1
|
* bfstd: Rename from util and reorganize itTavian Barnes2022-11-061-1/+1
|
* Source / Include Folder (#88)トトも2022-04-161-0/+233
Moved Source Files Into `src` Folder