mirror of
https://git.tesses.org/tesses50/crosslang.git
synced 2026-09-30 16:54:14 +00:00
Add htmlparser, conditional variables, make alloc_threshold overridable in prefs.json
This commit is contained in:
+21
-3
@@ -1,3 +1,23 @@
|
||||
/*
|
||||
CrossLang is a dynamically-typed scripting language built on
|
||||
TessesFramework, named in honor of Jesus's sacrifice.
|
||||
|
||||
Copyright (C) 2026 Mike Nolan
|
||||
SPDX-License-Identifier: GPL-3.0-or-later WITH TessesFramework-Exception-1.0
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
#include <TessesFramework/TessesFramework.hpp>
|
||||
#include <any>
|
||||
@@ -1279,9 +1299,6 @@ class AdvancedSyntaxNode {
|
||||
std::vector<SyntaxNode> n);
|
||||
};
|
||||
|
||||
SyntaxNode Deserialize(std::string astData);
|
||||
|
||||
std::string Serialize(SyntaxNode node);
|
||||
class GC;
|
||||
class TRootEnvironment;
|
||||
/**
|
||||
@@ -1393,6 +1410,7 @@ class GC : public std::enable_shared_from_this<GC> {
|
||||
Tesses::Framework::Threading::Mutex mtx;
|
||||
Tesses::Framework::Threading::Cond cond;
|
||||
uint32_t allocs = 0;
|
||||
uint32_t threshold = ALLOC_THRESHOLD;
|
||||
volatile std::atomic<bool> running;
|
||||
std::unordered_set<GCList *> roots;
|
||||
std::unordered_set<THeapObject *> objects;
|
||||
|
||||
Reference in New Issue
Block a user