Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-03-10 | AK: Add begin() and end() to String and StringView | howar6hill | |
Now it's possible to use range-based for loops with String and StringView. | |||
2020-03-08 | AK: Remove all the AK .host.o files on "make clean" in AK/Tests | Andreas Kling | |
This is a bit hackish, but sometimes these files stick around and mess up rebuilds. | |||
2020-03-08 | AK: Reduce code duplication in StringBuilder | howar6hill | |
2020-03-08 | AK: Improve the API of StringBuilder | howar6hill | |
2020-03-08 | AK: Use default constructor of Optional if an unset bit is not found | Liav A | |
2020-03-08 | AK: Remove unused InlineLRUCache template | Andreas Kling | |
This was not used by anyone. If we ever need it, we can bring it back. | |||
2020-03-08 | AK: Move memory stuff (fast memcpy, etc) to a separate header | Andreas Kling | |
Move the "fast memcpy" stuff out of StdLibExtras.h and into Memory.h. This will break a ton of things that were relying on StdLibExtras.h to include a bunch of other headers. Fix will follow immediately after. This makes it possible to include StdLibExtras.h from Types.h, which is the main point of this exercise. | |||
2020-03-08 | AK: Use __builtin_memset() and such to reduce header dependencies | Andreas Kling | |
We can use __builtin_memset() without including <string.h>. This is pretty neat, as it will allow us to reduce the header deps of AK templates a bit, if applied consistently. Note that this is an enabling change for an upcoming #include removal. | |||
2020-03-08 | AK: Add global FlatPtr typedef. It's u32 or u64, based on sizeof(void*) | Andreas Kling | |
Use this instead of uintptr_t throughout the codebase. This makes it possible to pass a FlatPtr to something that has u32 and u64 overloads. | |||
2020-03-08 | AK: Add a Conditional<condition, TrueType, FalseType> template | Andreas Kling | |
This allows you to select a type based on a compile-time condition. | |||
2020-03-06 | AK: Fix all the warnings in the AK tests | Andreas Kling | |
2020-03-06 | AK: Remove Optional::operator bool() | Andreas Kling | |
This was causing some obvious-in-hindsight but hard to spot bugs where we'd implicitly convert the bool to an integer type and carry on with the number 1 instead of the actual value(). | |||
2020-03-06 | AK: Simplify JsonObject and JsonArray API a little bit | Andreas Kling | |
Instead of set(const JsonValue&) and set(JsonValue&&), just do set(JsonValue) and let callers move() if they want. This removes some ambiguity and the compiler is smart enough to optimize it anyway. | |||
2020-03-04 | AK: LogStream should handle being passed a null const char* | Andreas Kling | |
2020-03-03 | AK: Make quick_sort() a little more ergonomic | Andreas 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-03-02 | AK: Add support for Kernel Log Stream | Liav A | |
2020-03-02 | Meta: Adjust some copyright dates by Fei Wu | Andreas Kling | |
2020-03-02 | AK: Add missing copyright headers to StringUtils.{cpp,h} | Andreas Kling | |
2020-03-02 | AK: Move to_int(), to_uint() implementations to StringUtils (#1338) | howar6hill | |
Provide wrappers in String and StringView. Add some tests for the implementations. | |||
2020-03-02 | AK: Move the wildcard-matching implementation to StringUtils | howar6hill | |
Provide wrappers in the String and StringView classes, and add some tests. | |||
2020-03-02 | AK: Add enqueue_begin() for the CircularDeque class (#1320) | howar6hill | |
Also add tests for CircularDeque. | |||
2020-03-02 | AK: Remove superfluous explicit in Bitmap (#1337) | howar6hill | |
2020-03-01 | AK: Remove unnecessary casts to size_t, after Vector changes | Andreas Kling | |
Now that Vector uses size_t, we can remove a whole bunch of redundant casts to size_t. | |||
2020-02-28 | Kernel: Merge the shbuf_get_size() syscall into shbuf_get() | Andreas Kling | |
Add an extra out-parameter to shbuf_get() that receives the size of the shared buffer. That way we don't need to make a separate syscall to get the size, which we always did immediately after. | |||
2020-02-28 | LibC: Move shbuf_* API's to <serenity.h> | Andreas Kling | |
2020-02-28 | Kernel+LibC: Rename shared buffer syscalls to use a prefix | Andreas Kling | |
This feels a lot more consistent and Unixy: create_shared_buffer() => shbuf_create() share_buffer_with() => shbuf_allow_pid() share_buffer_globally() => shbuf_allow_all() get_shared_buffer() => shbuf_get() release_shared_buffer() => shbuf_release() seal_shared_buffer() => shbuf_seal() get_shared_buffer_size() => shbuf_get_size() Also, "shared_buffer_id" is shortened to "shbuf_id" all around. | |||
2020-02-27 | Tests: Fix a typo inTestRefPtr | howar6hill | |
2020-02-27 | AK: Expose SinglyLinkedListIterator constructor | William McPherson | |
This commit replaces SinglyLinkedListIterator::universal_end() with an empty SinglyLinkedListIterator(). Piano needs this in order to initialize a member array of iterators without 84 lines of universal_end(). | |||
2020-02-26 | CircularQueue: Move construct a T object instead of copy constructing it | howar6hill | |
2020-02-25 | AK: Have AK/kmalloc.h #include <new> on other platforms | Andreas Kling | |
This should make stuff like placement new work correctly when building outside of Serenity. This stuff is a bit delicate due to the weirdly staged toolchain build at the moment. Hopefully we can unify this stuff in the future. | |||
2020-02-25 | AK: Provide a ptr_hash(const void*) overload | Andreas Kling | |
2020-02-25 | AK: Add ptr_hash to use int_hash or u64_hash depending on pointer size | joshua stein | |
2020-02-25 | AK: Some more int => size_t in Bitmap | Andreas Kling | |
2020-02-25 | AK: Make Queue use size_t for its size | Andreas Kling | |
2020-02-25 | AK: Make Vector use size_t for its size and capacity | Andreas Kling | |
2020-02-25 | AK, LibGfx, LibGUI: Initialize various variables to zero. | Emanuel Sprung | |
The not initialized variables can lead to compiler warnings that become errors with the -Werror flag. | |||
2020-02-24 | AK: Zero-initialize the internal storage of Optional | Andreas Kling | |
2020-02-24 | AK: Make Bitmap use size_t for its size | Andreas Kling | |
Also rework its API's to return Optional<size_t> instead of int with -1 as the error value. | |||
2020-02-24 | AK: Make HashTable and HashMap use size_t for size and capacity | Andreas Kling | |
2020-02-22 | AK: Add StringBuilder::is_empty() | Shannon Booth | |
2020-02-22 | AK: Add StringView::starts_with(char) & StringView::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-21 | Toolchain: Build demangling into LibC except during toolchain build | Andreas Kling | |
2020-02-20 | AK: Use size_t for CircularQueue and CircularDeque | Andreas Kling | |
2020-02-20 | AK: Use size_t for ByteBuffer sizes | Andreas Kling | |
This matches what we already do for string types. | |||
2020-02-19 | AK: Fix bug where "%s" with field width would print too many characters | Andreas Kling | |
I introduced this while implementing "%.*s", oops. | |||
2020-02-19 | AK: Support "%.*s" in format strings | Andreas Kling | |
Work towards #623. | |||
2020-02-19 | AK: Use endianness flags to determine if conversion is necessary | Liav A | |
2020-02-18 | Kernel: Use a FixedArray for a process's extra GIDs | Andreas Kling | |
There's not really enough of these to justify using a HashTable. | |||
2020-02-18 | Kernel: Add placement new[] operator | Sergey Bugaev | |
2020-02-17 | Kernel: Replace "current" with Thread::current and Process::current | Andreas Kling | |
Suggested by Sergey. The currently running Thread and Process are now Thread::current and Process::current respectively. :^) |