sdl_runtime_compiler git · main
SDL3 game for running and compiling code at runtime
C++ 72.3% C 26.2%git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gzRemove line.hpp
src/text/handler.hpp | 1 - src/text/line.cpp | 2 +- src/text/line.hpp | 24 ------------------------ src/text/text.hpp | 7 ++++--- 4 files changed, 5 insertions(+), 29 deletions(-) diff --git a/src/text/handler.hpp b/src/text/handler.hpp index 58697be..19808e9 100644 --- a/src/text/handler.hpp +++ b/src/text/handler.hpp @@ -5,7 +5,6 @@ #include "entities/camera.hpp" #include "text/text.hpp" -#include "text/line.hpp" #include "text/token.hpp" #include "text/vim_buffer.hpp" #include "utils/globals.hpp" diff --git a/src/text/line.cpp b/src/text/line.cpp index a6252b4..9845543 100644 --- a/src/text/line.cpp +++ b/src/text/line.cpp @@ -1,6 +1,6 @@ // text/line.cpp -#include "text/line.hpp" +#include "text/token.hpp" namespace Text { diff --git a/src/text/line.hpp b/src/text/line.hpp deleted file mode 100644 index 0f90ddb..0000000 --- a/src/text/line.hpp +++ /dev/null @@ -1,24 +0,0 @@ -#pragma once -// -// text/line.hpp — Phase 1 contract -// -// Text::Line is the single owning line structure. It replaces three things that -// each modeled "a row of tokens" for one context: -// - Wall::Editor::Line (non-owning Text::Token::Data*, line numbers, bounce) -// - Text::Line/Token::Data (logical row for tree-sitter, non-owning view ptr) -// - EditorRow (vim mode's parallel owned meshes) -// -// A Line OWNS its tokens. Layout that needs cross-line context (snapping, -// pushing neighbors, column alignment) lives on the Handler, not here — Line is -// mostly data plus a few conveniences. `y` is the row's world height; tokens on -// the row share it. -// - -#include "text/token.hpp" -#include "utils/globals.hpp" - -namespace Text -{ - - -} // namespace Text diff --git a/src/text/text.hpp b/src/text/text.hpp index de2dc1b..ba6bc5a 100644 --- a/src/text/text.hpp +++ b/src/text/text.hpp @@ -40,9 +40,10 @@ Text struct HiSpan { - size_t byte_begin; - size_t byte_end; - Text::Token::Type type; + size_t byte_begin; + size_t byte_end; + Text::Token::Type + type; };