mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add AARCH64 missing max size for return. Allow 1 character module names.
This commit is contained in:
@@ -1162,6 +1162,7 @@ void target_setup(BuildTarget *target)
|
||||
case ARCH_TYPE_ARM:
|
||||
case ARCH_TYPE_RISCV32:
|
||||
case ARCH_TYPE_RISCV64:
|
||||
case ARCH_TYPE_AARCH64:
|
||||
platform_target.max_size_for_return = platform_target.width_pointer * 2 / 8;
|
||||
break;
|
||||
case ARCH_TYPE_PPC64:
|
||||
|
||||
@@ -38,7 +38,7 @@ int filename_to_module(const char *path, char buffer[MAX_IDENTIFIER_LENGTH + 1])
|
||||
if (path[i] == '.') last_dot = i;
|
||||
}
|
||||
int namelen = last_dot - last_slash - 1;
|
||||
if (namelen < 2) return 0;
|
||||
if (namelen < 1) return 0;
|
||||
if (namelen > MAX_IDENTIFIER_LENGTH) namelen = MAX_IDENTIFIER_LENGTH;
|
||||
for (int i = last_slash + 1; i < last_dot; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user