Switch to <* *> docs. Fix issue with dynamically loaded C3 libs with other C3 code.

This commit is contained in:
Christoffer Lerno
2024-10-12 17:55:05 +02:00
committed by Christoffer Lerno
parent 9f6a4eb300
commit 31cd839063
119 changed files with 3271 additions and 3277 deletions

View File

@@ -25,9 +25,9 @@ fn usz CsvRow.len(&self) @operator(len)
return self.list.len;
}
/**
* @require col < self.list.len
**/
<*
@require col < self.list.len
*>
fn String CsvRow.get_col(&self, usz col) @operator([])
{
return self.list[col];
@@ -44,9 +44,9 @@ fn CsvRow! CsvReader.read_new_row(self)
return self.read_row(allocator::heap()) @inline;
}
/**
* @param [&inout] allocator
**/
<*
@param [&inout] allocator
*>
fn CsvRow! CsvReader.read_row(self, Allocator allocator)
{
String row = io::readline(self.stream, allocator: allocator)!;
@@ -60,9 +60,9 @@ fn CsvRow! CsvReader.read_temp_row(self)
return self.read_row(allocator::temp()) @inline;
}
/**
* @require self.allocator `Row already freed`
**/
<*
@require self.allocator `Row already freed`
*>
fn void CsvRow.free(&self)
{
allocator::free(self.allocator, self.list);