builtin: define C.abs()
parent
0887b59254
commit
364656b312
|
@ -53,6 +53,7 @@ fn C.chmod(&char, u32) int
|
||||||
fn C.printf(&char, ...voidptr) int
|
fn C.printf(&char, ...voidptr) int
|
||||||
|
|
||||||
fn C.puts(&char) int
|
fn C.puts(&char) int
|
||||||
|
fn C.abs(f64) f64
|
||||||
|
|
||||||
fn C.fputs(str &char, stream &C.FILE) int
|
fn C.fputs(str &char, stream &C.FILE) int
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ fn (mut p Parser) array_init() ast.ArrayInit {
|
||||||
// [100]u8
|
// [100]u8
|
||||||
elem_type = p.parse_type()
|
elem_type = p.parse_type()
|
||||||
if p.table.sym(elem_type).name == 'byte' {
|
if p.table.sym(elem_type).name == 'byte' {
|
||||||
p.error('`byte` has been deprecated in favor of `u8`: use `[10]u8` instead of `[10]byte`')
|
p.error('`byte` has been deprecated in favor of `u8`: use `[10]u8{}` instead of `[10]byte{}`')
|
||||||
}
|
}
|
||||||
last_pos = p.tok.pos()
|
last_pos = p.tok.pos()
|
||||||
is_fixed = true
|
is_fixed = true
|
||||||
|
|
Loading…
Reference in New Issue