asleepymoon
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-17 14:32:50 +00:00
d5b9ff1569 Remove unused function definition
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-17 14:28:54 +00:00
e4b971f09c Make LinkedList::prepend() also set the element as the last one if we have no elements
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-17 14:27:52 +00:00
f5de9c5589 LinkedList: Add a prepend() method
c5220cbf64 LinkedList: Rename append_after to add_after
Compare 2 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-17 14:16:02 +00:00
2bc6398d3e TRY(): Call release_value() instead of expect_release_value()
34c738116c Result: Make some member functions const
90bd4a83c0 Result, Option: Move member initialization to constructors
ee6387e7b5 Refactor NumberParsing.cpp + a lot of comments
Compare 4 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-17 13:43:34 +00:00
97cb57d521 Check for overflow/underflow in parse_signed_integer
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-17 13:33:03 +00:00
59c9d8f119 asm -> asm volatile
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-17 12:51:04 +00:00
acb0ab1cd7 Use TypeTraits in Alignment.h to make static assertions more readable
ace674e518 LinkedList: Make sure the contained type inherits from DoublyLinkedListNode<T>
2cbc9fa385 Add some nice TypeTraits
f77126768f Improve message
Compare 4 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-17 11:46:00 +00:00
16954695dd Tell the compiler that string_format is a printf-style function
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-17 11:44:04 +00:00
16e00bada0 Add comments to Format.h
abbed13f27 Add a 'pure' variant of cstyle_format which is infallible
48fcb8734a Give number parsing functions more meaningful names
Compare 3 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-17 10:36:57 +00:00
cf3b2176f0 Implement OwnedStringView::from_string_literal
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-17 09:57:41 +00:00
df9a13cbfb KernelVM: Make g_used_vm atomic and g_kernelvm_bitmap a LockedValue
132963070b MemoryManager: Make some variables atomic and the frame bitmap a LockedValue
f97515bd7e Kernel: Add Spinlock and LockedValue<T>
6e5d2b5335 Thread: Make g_next_id atomic
14461c6fe8 Atomic: Add operators += and -=
Compare 6 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-16 20:16:00 +00:00
a16f357ab9 Add an Atomic class
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-16 19:51:14 +00:00
b316e3b3b7 Print stack trace on assertion fail
da39ba33a9 Move OwnedStringView::operator[] out of line
Compare 2 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-16 19:40:39 +00:00
59765aa334 Rename String.h -> CString.h
42a2c2af49 Add strdup()
e56075fb46 Use nothrow in raw_malloc
Compare 3 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-16 19:28:23 +00:00
345e13965e Add missing include
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-16 18:48:57 +00:00
4a6c59d519 Make all methods in OwnedStringView const
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-16 18:47:55 +00:00
2e24e09146 Convert MemoryMapIterator to Option
a32590ff8a Call expect_value more
Compare 2 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-16 18:38:25 +00:00
cedcfa9c63 Improve cleanup on MemoryManager failure + add methods that use KernelVM
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-16 17:33:14 +00:00
814672c771 Remove some redundant error propagation
asleepymoon pushed to restart at asleepymoon/Luna 2022-12-16 17:19:05 +00:00
41b3c8adb2 Convert to_dynamic_unit to OwnedStringView and rename the old variant to to_dynamic_unit_cstr
be22cf6267 Introduce OwnedStringView
d759058b80 Introduce std::nothrow
32c8869973 Option: Simplify release_value
19a4e2ab58 Result, Option: Make sure everything is properly moved
Compare 5 commits »