Compare commits

..

5 Commits

Author SHA1 Message Date
25ea67399a
editor: Remove insert mode and use the arrow keys to navigate, plus Ctrl+S to save
All checks were successful
Build and test / build (push) Successful in 2m4s
2024-03-13 23:21:08 +01:00
c6daf8d690
editor: Add basic loading and saving 2024-03-13 23:21:08 +01:00
7d826df3e4
editor: Add a basic text editor 2024-03-13 23:21:03 +01:00
cdab3dea90
libluna: Assert some unreachable conditions
All checks were successful
Build and test / build (push) Successful in 1m48s
2024-03-07 23:10:35 +01:00
2780ee2ebc
ports: Build gcc without --enable-checking
All checks were successful
Build and test / build (push) Successful in 1m54s
Now that gcc works, we don't need to bloat the binary with asserts.
2024-03-07 22:33:17 +01:00
2 changed files with 3 additions and 13 deletions

View File

@ -166,12 +166,7 @@ static Result<void> combine_forward(HeapBlock* block)
if (next->status & BLOCK_END_MEM)
{
if (next->status & BLOCK_START_MEM)
{
const usize pages = ceil_div(next->full_size + sizeof(HeapBlock), PAGE_SIZE);
TRY(release_pages_impl(next, pages));
return {};
}
if (next->status & BLOCK_START_MEM) { unreachable(); }
else
block->status |= BLOCK_END_MEM;
}
@ -195,12 +190,7 @@ static Result<HeapBlock*> combine_backward(HeapBlock* block)
if (block->status & BLOCK_END_MEM)
{
if (block->status & BLOCK_START_MEM)
{
const usize pages = ceil_div(block->full_size + sizeof(HeapBlock), PAGE_SIZE);
TRY(release_pages_impl(block, pages));
return last;
}
if (block->status & BLOCK_START_MEM) { unreachable(); }
else
last->status |= BLOCK_END_MEM;
}

View File

@ -17,7 +17,7 @@ do_patch()
do_configure()
{
$srcdir/configure --prefix=/usr --target=$LUNA_ARCH-luna --host=$LUNA_ARCH-luna --disable-nls --with-build-sysroot=$LUNA_BASE --enable-languages=c,c++ --enable-checking --enable-initfini-array
$srcdir/configure --prefix=/usr --target=$LUNA_ARCH-luna --host=$LUNA_ARCH-luna --disable-nls --with-build-sysroot=$LUNA_BASE --enable-languages=c,c++ --enable-initfini-array
}
do_build()