summaryrefslogtreecommitdiff
path: root/Userland/sort.cpp
AgeCommit message (Collapse)Author
2021-01-12Userland: Move command-line utilities to Userland/Utilities/Andreas Kling
2020-12-21Everywhere: Switch from (void) to [[maybe_unused]] (#4473)Lenny Maiorani
Problem: - `(void)` simply casts the expression to void. This is understood to indicate that it is ignored, but this is really a compiler trick to get the compiler to not generate a warning. Solution: - Use the `[[maybe_unused]]` attribute to indicate the value is unused. Note: - Functions taking a `(void)` argument list have also been changed to `()` because this is not needed and shows up in the same grep command.
2020-12-09Userland: Fix segfault in sortSahan Fernando
2020-10-25Userland/sort: Convert sort to use getlineMatthew L. Curry
Sort uses a statically sized buffer. This commit changes that to use getline, so lines of any size will be handled properly.
2020-03-08Userspace: Add missing #includes now that AK/StdLibExtras.h is smallerAndreas Kling
2020-03-03AK: Make quick_sort() a little more ergonomicAndreas Kling
Now it actually defaults to "a < b" comparison, instead of forcing you to provide a trivial less-than comparator. Also you can pass in any collection type that has .begin() and .end() and we'll sort it for you.
2020-02-18sort: Use pledge()Andreas Kling
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2019-09-06AK: Rename <AK/AKString.h> to <AK/String.h>Andreas Kling
This was a workaround to be able to build on case-insensitive file systems where it might get confused about <string.h> vs <String.h>. Let's just not support building that way, so String.h can have an objectively nicer name. :^)
2019-06-22Userland: Fix more compiler warnings.Andreas Kling
2019-06-07Userland: Run clang-format on everything.Andreas Kling
2019-04-26Userland: Add a simple /bin/sort program.Andreas Kling