update deprecations for c3 0.7.9

This commit is contained in:
Alessandro Mauri 2026-03-11 17:37:07 +01:00
parent 4f7fa7d50c
commit d2a5e4739b
8 changed files with 28 additions and 28 deletions

View file

@ -13,7 +13,7 @@ macro usz LineInfo.len(li) => li.end-li.start;
alias LineStack @local = list::List{LineInfo};
fn short Rect.y_off(Rect bounds, short height, Anchor anchor) @local
fn short Rect.y_off(Rect bounds, short height, Anchor anchor)
{
short off;
@ -34,7 +34,7 @@ fn short Rect.y_off(Rect bounds, short height, Anchor anchor) @local
return off;
}
fn short Rect.x_off(Rect bounds, short width, Anchor anchor) @local
fn short Rect.x_off(Rect bounds, short width, Anchor anchor)
{
short off;
@ -205,7 +205,7 @@ fn Rect? GlyphIterator.next(&self)
// check if there is a next glyph and maybe update the line and offset indices
if (self.anchor != TOP_LEFT) {
if (self.line_idx >= self.lines.len()) {
return NO_MORE_ELEMENT?;
return NO_MORE_ELEMENT~;
}
LineInfo li = self.lines[self.line_idx];
@ -213,7 +213,7 @@ fn Rect? GlyphIterator.next(&self)
self.line_idx++;
if (self.line_idx >= self.lines.len()) {
return NO_MORE_ELEMENT?;
return NO_MORE_ELEMENT~;
}
self.line_off = 0;
@ -223,7 +223,7 @@ fn Rect? GlyphIterator.next(&self)
self.o.x = self.bounds.x + self.bounds.x_off(li.width, self.anchor) - li.first_off;
}
} else if (self.line_off >= self.text.len) {
return NO_MORE_ELEMENT?;
return NO_MORE_ELEMENT~;
}
String t;