mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
More use of temp allocator.
This commit is contained in:
@@ -21,9 +21,9 @@ fn void CsvReader.init(&self, Stream stream, String separator = ",")
|
||||
|
||||
fn String[]! CsvReader.read_row(self, Allocator* using = mem::heap())
|
||||
{
|
||||
@stack_mem(512; Allocator* mem)
|
||||
@pool()
|
||||
{
|
||||
return self.stream.readline(mem).split(self.separator, .using = using);
|
||||
return self.stream.treadline().split(self.separator, .using = using);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user