From 730353342d9e458c666cdbbd00db5e9faac83535 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Tue, 14 Jan 2025 13:23:23 +1100 Subject: [PATCH] Updated license date, tweaked an error message --- LICENSE.md | 2 +- repl/main.c | 2 +- source/toy_print.h | 1 + source/toy_scope.c | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 24e7240..a53eacf 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2020-2024 Kayne Ruse, KR Game Studios +Copyright (c) 2020-2025 Kayne Ruse, KR Game Studios This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages diff --git a/repl/main.c b/repl/main.c index 9525ded..b14140b 100644 --- a/repl/main.c +++ b/repl/main.c @@ -178,7 +178,7 @@ void versionCmdLine(int argc, const char* argv[]) { //copy/pasted from the license file - there's a way to include it directly, but it's too finnicky to bother const char* license = "\ -Copyright (c) 2020-2024 Kayne Ruse, KR Game Studios\n\ +Copyright (c) 2020-2025 Kayne Ruse, KR Game Studios\n\ \n\ This software is provided 'as-is', without any express or implied\n\ warranty. In no event will the authors be held liable for any damages\n\ diff --git a/source/toy_print.h b/source/toy_print.h index 049b1e6..bfa9af4 100644 --- a/source/toy_print.h +++ b/source/toy_print.h @@ -17,3 +17,4 @@ TOY_API void Toy_resetPrintCallback(void); TOY_API void Toy_resetErrorCallback(void); TOY_API void Toy_resetAssertFailureCallback(void); +//TODO: rename print.h to debug? \ No newline at end of file diff --git a/source/toy_scope.c b/source/toy_scope.c index 5954d9a..7177375 100644 --- a/source/toy_scope.c +++ b/source/toy_scope.c @@ -153,7 +153,7 @@ void Toy_assignScope(Toy_Scope* scope, Toy_String* key, Toy_Value value) { //constness check if (Toy_getNameStringVarConstant( TOY_VALUE_AS_STRING(entryPtr->key) )) { char buffer[key->info.length + 256]; - sprintf(buffer, "Can't assign to const %s", key->name.data); + sprintf(buffer, "Can't reassign to constant variable %s", key->name.data); Toy_error(buffer); return; }