mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- new_* functions in general moved to version without new_ prefix.
- `string::new_from_*` changed to `string::from_*`. - `String.to_utf16_copy` and related changed to `String.to_utf16`. - `String.to_utf16_tcopy` and related changed to `String.to_temp_utf16` - `mem::temp_new` changed to `mem::tnew`. - `mem::temp_alloc` and related changed to `mem::talloc`. - `mem::temp_new_array` changed to `mem::temp_array`.
This commit is contained in:
committed by
Christoffer Lerno
parent
b35aafd3d5
commit
c40198b016
@@ -132,13 +132,13 @@ fn void RunFile.add_line(&self, String line)
|
||||
fn RunFile*! create_input_file(String filename)
|
||||
{
|
||||
File file = file::open_path(test_dir.tappend(filename), "wb")!;
|
||||
RunFile *run_file = mem::temp_new(RunFile, { .name = filename, .file = file, .is_output = false });
|
||||
RunFile *run_file = mem::tnew(RunFile, { .name = filename, .file = file, .is_output = false });
|
||||
return run_file;
|
||||
}
|
||||
|
||||
fn RunFile*! create_output_file(String filename)
|
||||
{
|
||||
RunFile *run_file = mem::temp_new(RunFile, { .name = filename, .is_output = true });
|
||||
RunFile *run_file = mem::tnew(RunFile, { .name = filename, .is_output = true });
|
||||
return run_file;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user