From f5b8091ee91b8323b8e2b1044ba8be676f2bfaf4 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 19 Mar 2024 22:56:52 +0100 Subject: Definition Parser now consumes from the new Reader Next steps are to move ParseUtils functionality to DefinitinoEx, sort things into the namespaces in this library, and then prepare it to handle overloading like nlohmann_json does. On the other side, it's time for starshatter::data. --- StarsEx/Starshatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'StarsEx/Starshatter.cpp') diff --git a/StarsEx/Starshatter.cpp b/StarsEx/Starshatter.cpp index 3decdae..adb519a 100644 --- a/StarsEx/Starshatter.cpp +++ b/StarsEx/Starshatter.cpp @@ -2292,7 +2292,7 @@ Starshatter::LoadVideoConfig(const char* filename) if (blocklen == 0) return; - Parser parser(new BlockReader((const char*) block, blocklen)); + Parser parser({reinterpret_cast(block), blocklen}); Term* term = parser.ParseTerm(); if (!term) { -- cgit v1.1