Fixed some additional errors due to the BuildParseContext refactoring.

This commit is contained in:
Christoffer Lerno
2025-03-01 12:48:22 +01:00
parent 76f226f536
commit 28b9ff8016
2 changed files with 4 additions and 4 deletions

View File

@@ -267,11 +267,11 @@ static void load_into_build_target(BuildParseContext context, JSONObject *json,
{
if (symtab_size < 1024)
{
error_exit("Error reading %s: symtab was less than 1024.", filename);
error_exit("Error reading %s: symtab was less than 1024.", context.file);
}
if (symtab_size > MAX_SYMTAB_SIZE)
{
error_exit("Error reading %s: symtab may not exceed %d.", context, MAX_SYMTAB_SIZE);
error_exit("Error reading %s: symtab may not exceed %d.", context.file, MAX_SYMTAB_SIZE);
}
target->symtab_size = (uint32_t)symtab_size;
}
@@ -281,7 +281,7 @@ static void load_into_build_target(BuildParseContext context, JSONObject *json,
if (arch_os_string)
{
ArchOsTarget arch_os = arch_os_target_from_string(arch_os_string);
if (arch_os == ARCH_OS_TARGET_DEFAULT) error_exit("Error reading %s: %s target was not valid.", filename, context.target);
if (arch_os == ARCH_OS_TARGET_DEFAULT) error_exit("Error reading %s: %s target was not valid.", context.file, context.target);
target->arch_os_target = arch_os;
}

View File

@@ -147,7 +147,7 @@ do {\
#define VIEW_INTEGER(header, key) \
do {\
long v = get_valid_integer(context, project_json, filename, false);\
long v = get_valid_integer(context, project_json, context.file, false);\
print_opt_int(header, v);\
} while(0);