mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Limit object filename lengths. #1415
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
- "optsize" did not work correctly in project.json.
|
||||
- `l[0].a = 1` now supported for overloads due to better lvalue handling #1357.
|
||||
- Asserts are retained regardless of optimization when running tests.
|
||||
- Limit object filename lengths. #1415
|
||||
|
||||
### Stdlib changes
|
||||
- Additional init functions for hashmap.
|
||||
|
||||
@@ -64,6 +64,11 @@ const char *module_create_object_file_name(Module *module)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (scratch_buffer.len > 128)
|
||||
{
|
||||
scratch_buffer.len = 128;
|
||||
scratch_buffer_printf("@%X", module);
|
||||
}
|
||||
return scratch_buffer_to_string();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user