From 878cdffb3f69c780cb55f1fbb54747d9066a385a Mon Sep 17 00:00:00 2001 From: aqua Date: Sun, 12 Feb 2023 17:28:33 +0200 Subject: Generate dependency files for source code Use the compiler to generate dependency files for all C, C++ and .S assembly source code files. These are included in the makefiles where the files are used. --- lib/tst/linked_list_allocator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/tst') diff --git a/lib/tst/linked_list_allocator.cc b/lib/tst/linked_list_allocator.cc index f3af8e2..280a6d5 100644 --- a/lib/tst/linked_list_allocator.cc +++ b/lib/tst/linked_list_allocator.cc @@ -6,9 +6,9 @@ namespace libk { #include "../stdlib/linked_list_allocator.c" std::ostream & -operator<<(std::ostream &os, const Chunk &begin) +operator<<(std::ostream &os, const Chunk &b) { - for (const Chunk *iter = &begin; iter != nullptr; iter = iter->next) { + for (const Chunk *iter = &b; iter != nullptr; iter = iter->next) { os << iter << " used=" << iter->used << " size=" << std::setw(4) << iter->size << " next=" << iter->next << std::endl; } -- cgit v1.2.1