From 5df57d898a0b6208fe121f2cfa2ca0f6edf06e31 Mon Sep 17 00:00:00 2001 From: MineRobber9000 Date: Wed, 27 May 2026 08:48:14 -0400 Subject: [PATCH] Fix some build errors --- cs/IntrinsicAPI.cs | 2 +- cs/ShellIntrinsics.cs | 2 +- cs/VM.cs | 1 + generated/IntrinsicAPI.g.cpp | 2 +- generated/IntrinsicAPI.g.h | 2 +- generated/ShellIntrinsics.g.cpp | 2 +- generated/VM.g.h | 1 + generated/forward_decs.g.h | 130 ++++++++++++++++---------------- 8 files changed, 72 insertions(+), 70 deletions(-) diff --git a/cs/IntrinsicAPI.cs b/cs/IntrinsicAPI.cs index a954e73..a1bdd65 100644 --- a/cs/IntrinsicAPI.cs +++ b/cs/IntrinsicAPI.cs @@ -57,7 +57,7 @@ public Value GetVar(String variableName) { return vm.LookupParamByName(variableName); } - public Interpreter Interpreter() { + public Interpreter GetInterpreter() { return vm.GetInterpreter(); } } diff --git a/cs/ShellIntrinsics.cs b/cs/ShellIntrinsics.cs index f1fc9e3..3a22ec5 100644 --- a/cs/ShellIntrinsics.cs +++ b/cs/ShellIntrinsics.cs @@ -1088,7 +1088,7 @@ struct tm t; localtime_r(&stats.st_mtime, &t); #endif #endif - char dateBuf[32]; + char dateBuf[72]; snprintf(dateBuf, sizeof(dateBuf), "%04d-%02d-%02d %02d:%02d:%02d", 1900 + t.tm_year, 1 + t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec); Value result = make_map(4); diff --git a/cs/VM.cs b/cs/VM.cs index ded456b..a87db32 100644 --- a/cs/VM.cs +++ b/cs/VM.cs @@ -9,6 +9,7 @@ // H: #include "ErrorTypes.g.h" // H: #include "value_map.h" // H: #include +// H: #include // H: #include "GCManager.g.h" // CPP: #include "value_list.h" // CPP: #include "value_string.h" diff --git a/generated/IntrinsicAPI.g.cpp b/generated/IntrinsicAPI.g.cpp index b6e481d..5197426 100644 --- a/generated/IntrinsicAPI.g.cpp +++ b/generated/IntrinsicAPI.g.cpp @@ -10,7 +10,7 @@ namespace MiniScript { Value Context::GetVar(String variableName) { return vm.LookupParamByName(variableName); } -Interpreter Context::Interpreter() { +Interpreter Context::GetInterpreter() { return vm.GetInterpreter(); } diff --git a/generated/IntrinsicAPI.g.h b/generated/IntrinsicAPI.g.h index f26b13c..abd2041 100644 --- a/generated/IntrinsicAPI.g.h +++ b/generated/IntrinsicAPI.g.h @@ -38,7 +38,7 @@ struct Context { // argument values, which are far more efficiently found via GetArg (above). public: Value GetVar(String variableName); - public: Interpreter Interpreter(); + public: Interpreter GetInterpreter(); }; // end of struct Context // IntrinsicResult: represents the result of calling an intrinsic function diff --git a/generated/ShellIntrinsics.g.cpp b/generated/ShellIntrinsics.g.cpp index bcd83db..4370c48 100644 --- a/generated/ShellIntrinsics.g.cpp +++ b/generated/ShellIntrinsics.g.cpp @@ -577,7 +577,7 @@ Value ShellIntrinsics::FsInfo(String path) { localtime_r(&stats.st_mtime, &t); #endif #endif - char dateBuf[32]; + char dateBuf[72]; snprintf(dateBuf, sizeof(dateBuf), "%04d-%02d-%02d %02d:%02d:%02d", 1900 + t.tm_year, 1 + t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec); Value result = make_map(4); diff --git a/generated/VM.g.h b/generated/VM.g.h index 6d30179..da9b01b 100644 --- a/generated/VM.g.h +++ b/generated/VM.g.h @@ -10,6 +10,7 @@ #include "ErrorTypes.g.h" #include "value_map.h" #include +#include #include "GCManager.g.h" namespace MiniScript { diff --git a/generated/forward_decs.g.h b/generated/forward_decs.g.h index ffb0f04..bc080a2 100644 --- a/generated/forward_decs.g.h +++ b/generated/forward_decs.g.h @@ -1,14 +1,6 @@ // FORWARD DECLARATIONS namespace MiniScript { -struct CodeGenerator; -class CodeGeneratorStorage; -struct CallInfo; -struct VM; -class VMStorage; -struct Context; -struct IntrinsicResult; -struct VMVis; struct CodeEmitterBase; class CodeEmitterBaseStorage; struct LabelReference; @@ -16,48 +8,10 @@ struct BytecodeEmitter; class BytecodeEmitterStorage; struct AssemblyEmitter; class AssemblyEmitterStorage; -struct Assembler; -class AssemblerStorage; -struct Parselet; -class ParseletStorage; -struct PrefixParselet; -class PrefixParseletStorage; -struct InfixParselet; -class InfixParseletStorage; -struct NumberParselet; -class NumberParseletStorage; -struct SelfParselet; -class SelfParseletStorage; -struct SuperParselet; -class SuperParseletStorage; -struct ScopeParselet; -class ScopeParseletStorage; -struct StringParselet; -class StringParseletStorage; -struct IdentifierParselet; -class IdentifierParseletStorage; -struct UnaryOpParselet; -class UnaryOpParseletStorage; -struct AddressOfParselet; -class AddressOfParseletStorage; -struct GroupParselet; -class GroupParseletStorage; -struct ListParselet; -class ListParseletStorage; -struct MapParselet; -class MapParseletStorage; -struct BinaryOpParselet; -class BinaryOpParseletStorage; -struct ComparisonParselet; -class ComparisonParseletStorage; -struct CallParselet; -class CallParseletStorage; -struct IndexParselet; -class IndexParseletStorage; -struct MemberParselet; -class MemberParseletStorage; -struct Intrinsic; -class IntrinsicStorage; +struct Context; +struct IntrinsicResult; +struct Interpreter; +class InterpreterStorage; struct GCSetBase; class GCSetBaseStorage; struct GCStringSet; @@ -72,18 +26,12 @@ struct GCHandleSet; class GCHandleSetStorage; struct GCFuncRefSet; class GCFuncRefSetStorage; -struct Parser; -class ParserStorage; -struct GCString; -struct GCList; -struct GCMap; -struct GCError; -struct GCFunction; -struct GCHandle; -struct Interpreter; -class InterpreterStorage; -struct FuncDef; -class FuncDefStorage; +struct VMVis; +struct Token; +struct Lexer; +struct CallInfo; +struct VM; +class VMStorage; struct ASTNode; class ASTNodeStorage; struct NumberNode; @@ -140,9 +88,61 @@ struct ScopeNode; class ScopeNodeStorage; struct ReturnNode; class ReturnNodeStorage; -struct App; +struct Parselet; +class ParseletStorage; +struct PrefixParselet; +class PrefixParseletStorage; +struct InfixParselet; +class InfixParseletStorage; +struct NumberParselet; +class NumberParseletStorage; +struct SelfParselet; +class SelfParseletStorage; +struct SuperParselet; +class SuperParseletStorage; +struct ScopeParselet; +class ScopeParseletStorage; +struct StringParselet; +class StringParseletStorage; +struct IdentifierParselet; +class IdentifierParseletStorage; +struct UnaryOpParselet; +class UnaryOpParseletStorage; +struct AddressOfParselet; +class AddressOfParseletStorage; +struct GroupParselet; +class GroupParseletStorage; +struct ListParselet; +class ListParseletStorage; +struct MapParselet; +class MapParseletStorage; +struct BinaryOpParselet; +class BinaryOpParseletStorage; +struct ComparisonParselet; +class ComparisonParseletStorage; +struct CallParselet; +class CallParseletStorage; +struct IndexParselet; +class IndexParseletStorage; +struct MemberParselet; +class MemberParseletStorage; struct VarMapBacking; class VarMapBackingStorage; -struct Token; -struct Lexer; +struct CodeGenerator; +class CodeGeneratorStorage; +struct Intrinsic; +class IntrinsicStorage; +struct Parser; +class ParserStorage; +struct GCString; +struct GCList; +struct GCMap; +struct GCError; +struct GCFunction; +struct GCHandle; +struct App; +struct Assembler; +class AssemblerStorage; +struct FuncDef; +class FuncDefStorage; }