mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Increase precedence of (Foo) { 1, 2 }
- Add `--enable-new-generics` to enable `Foo{int}` generic syntax.
This commit is contained in:
committed by
Christoffer Lerno
parent
c41d551ead
commit
e77d1fb646
@@ -274,7 +274,7 @@ fn Path! Path.new_absolute(self, Allocator allocator = allocator::heap())
|
||||
};
|
||||
$else
|
||||
String cwd = os::getcwd(allocator::temp())!;
|
||||
return Path { cwd, self.env }.new_append(path_str, allocator)!;
|
||||
return (Path){ cwd, self.env }.new_append(path_str, allocator)!;
|
||||
$endif
|
||||
}
|
||||
|
||||
|
||||
@@ -181,12 +181,12 @@ fn usz! copy_to(InStream in, OutStream dst, char[] buffer = {})
|
||||
if (&dst.read_to) return dst.read_to(in);
|
||||
$switch (env::MEMORY_ENV)
|
||||
$case NORMAL:
|
||||
return copy_through_buffer(in, dst, &&char[4096]{});
|
||||
return copy_through_buffer(in, dst, &&(char[4096]){});
|
||||
$case SMALL:
|
||||
return copy_through_buffer(in, dst, &&char[1024]{});
|
||||
return copy_through_buffer(in, dst, &&(char[1024]){});
|
||||
$case TINY:
|
||||
$case NONE:
|
||||
return copy_through_buffer(in, dst, &&(char[256]{}));
|
||||
return copy_through_buffer(in, dst, &&(char[256]){});
|
||||
$endswitch
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user