summaryrefslogtreecommitdiff
path: root/AK
AgeCommit message (Collapse)Author
2020-02-20AK: Use size_t for CircularQueue and CircularDequeAndreas Kling
2020-02-20AK: Use size_t for ByteBuffer sizesAndreas Kling
This matches what we already do for string types.
2020-02-19AK: Fix bug where "%s" with field width would print too many charactersAndreas Kling
I introduced this while implementing "%.*s", oops.
2020-02-19AK: Support "%.*s" in format stringsAndreas Kling
Work towards #623.
2020-02-19AK: Use endianness flags to determine if conversion is necessaryLiav A
2020-02-18Kernel: Use a FixedArray for a process's extra GIDsAndreas Kling
There's not really enough of these to justify using a HashTable.
2020-02-18Kernel: Add placement new[] operatorSergey Bugaev
2020-02-17Kernel: Replace "current" with Thread::current and Process::currentAndreas Kling
Suggested by Sergey. The currently running Thread and Process are now Thread::current and Process::current respectively. :^)
2020-02-16AK: Add basic Traits for RefPtrAndreas Kling
This allows RefPtr to be stored in a HashTable<RefPtr<T>> :^) It's unfortunate about the const_casts. We'll need to fix HashMap::get to play nice with non-const Traits<T>::PeekType at some point.
2020-02-16AK: Don't construct a String every time we LogStream<< a numberAndreas Kling
2020-02-16AK: Fixed a typo in NeverDestroyed.h (#1228)Kaif Mavani
2020-02-16AK: Add HashMap, HashTable and Traits to Forward.hAndreas Kling
2020-02-16Kernel: Move all code into the Kernel namespaceAndreas Kling
2020-02-16AK: Add missing include in CircularQueue.hAndreas Kling
2020-02-15AK: Don't bring in LibBareMetal's kstdio.h in userspaceAndreas Kling
2020-02-15AK: Make sure that Weakable always has the same memory layoutAndreas Kling
Weakable objects ended up with differing memory layouts in some ports since they don't build with the DEBUG macro defined. Instead of forcing ports to define DEBUG, just put this behind a custom WEAKABLE_DEBUG macro and leave it always-on for now.
2020-02-15AK: Fix broken #include statementAndreas Kling
2020-02-15AK: Add BufferStream to Forward.hAndreas Kling
2020-02-15AK: Add String starts_with(char) & ends_with(char)Shannon Booth
This is simply meant to be a more efficient implementation in the case that we only need to check a single character.
2020-02-14AK: Add Utf8View to Forward.hAndreas Kling
2020-02-14AK: Add LogStream and DebugLogStream to Forward.hAndreas Kling
2020-02-14AK: Add SharedBuffer to Forward.hAndreas Kling
2020-02-14LibCore: Add a forward declaration headerAndreas Kling
This patch adds <LibCore/Forward.h> and uses it in various places to shrink the header dependency graph.
2020-02-14AK: Add a forward declaration headerAndreas Kling
You can now #include <AK/Forward.h> to get most of the AK types as forward declarations. Header dependency explosion is one of the main contributors to compile times at the moment, so this is a step towards smaller include graphs.
2020-02-13AK: Move escape_html_entities() from LibHTML to AKAndreas Kling
This sort of thing can be useful to things that don't want to link with all of LibHTML.
2020-02-10AK: Remove bitrotted Traits::dump() mechanismAndreas Kling
This was only used by HashTable::dump() which I used when doing the first HashTable implementation. Removing this allows us to also remove most includes of <AK/kstdio.h>.
2020-02-09AK: Apply changes for the Bootstrapper environmentLiav A
2020-02-09AK: Make StringBuilder::to_string() non-destructiveAndreas Kling
This was an artifact of an earlier design of StringBuilder where I had attempted to preserve the same allocation from build to final String.
2020-02-08AK: Add JsonObjectSerializer::add(key, bool) overloadAndreas Kling
Without this, bools will get implicitly converted to integers, which is usually not what we want.
2020-02-08AK: Make PrintfImplementation treat %lld as 64-bitAndreas Kling
2020-02-08AK: Add LogStream overloads for long and long longAndreas Kling
2020-02-06AK: Add some missing "inline" keywords in JsonObject.hAndreas Kling
2020-02-06AK: Add missing StdLibExtras.h include in Optional.hAndreas Kling
2020-02-05AK+IPCCompiler: Get rid of BufferStream overloads for size_tAndreas Kling
Since BufferStream is about creating specific binary stream formats, let's not have a flaky type like size_t in there. Instead, clients of BufferStream can cast their size_t to the binary size they want to use. Account for this in IPCCompiler by making String lengths always 32-bit.
2020-02-05AK: Break LogStream::operator<< overloads into i/l/ll and u/ul/ullAndreas Kling
2020-02-05AK: Break String::number() overloads into i/l/ll and u/ul/ullAndreas Kling
Now that we're trying to be more portable, we can't only rely on using i32/u32 and i64/u64 since different systems have different combinations of int/long/long long and unsigned/unsigned long/unsigned long long.
2020-02-05AK: Support 64-bit integers in BufferStreamjoshua stein
2020-02-05AK: Add support for 64-bit size_tjoshua stein
2020-02-03AK: The <cxxabi.h> header is not available during Toolchain buildAndreas Kling
This will need some refinement, but basically since we build LibC during the toolchain build, we don't have libstdc++ headers yet.
2020-02-02AK: Turn demangling back on for userspaceAndreas Kling
This didn't work at some point, but now it apparently works again. :^)
2020-02-01AK: #ifdef out the contents of SharedBuffer on other platformsAndreas Kling
2020-02-01AK: Always inline StringView(const char*)Andreas Kling
Also use strlen() instead of manually walking the string. This allows GCC to optimize away the strlen() entirely for string literals. :^)
2020-02-01AK: Add some integer overloads to JsonObjectSerializerAndreas Kling
This avoids constructing a temporary JsonValue just to append an int.
2020-01-31AK: Add FixedArray::data()William McPherson
2020-01-26Ext2FS: allocate_blocks allocates contiguous blocks (#1095)Marios Prokopakis
This implementation uses the new helper method of Bitmap called find_longest_range_of_unset_bits. This method looks for the biggest range of contiguous bits unset in the bitmap and returns the start of the range back to the caller.
2020-01-25Build: Remove -fno-sized-deallocation -Wno-sized-deallocationAndreas Kling
Add sized variants of the global operator delete functions so we don't have to use these GCC options anymore.
2020-01-25AK: Vector::is_null() should always return falseAndreas Kling
This is only used by the somewhat dubious templated String::copy(). An empty Vector should generate an empty String when copied, never a null String.
2020-01-25AK: Assert if trying to create a WeakPtr to an object being destroyedAndreas Kling
Trying to make_weak_ptr() on something that has begun destruction is very unlikely to be what you want. Let's assert if that scenario comes up so we can catch it immediately.
2020-01-24Meta: Claim copyright for files created by meSergey Bugaev
This changes copyright holder to myself for the source code files that I've created or have (almost) completely rewritten. Not included are the files that were significantly changed by others even though it was me who originally created them (think HtmlView), or the many other files I've contributed code to.
2020-01-24AK: Use swap-based assignment in OwnPtrAndreas Kling
Also provide a specialized swap(OwnPtr, OwnPtr) that allows swapping an OwnPtr with itself.