blob: 68e9744f83602db8b46e9af411362957d60079e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
pkg "io";
#export puti ::= fn(x: int) {
#C("printf(\"%ld\\n\", (long)x)");
};
#export putf ::= fn(x: float) {
#C("printf(\"%f\\n\", (double)x)");
};
#export puts ::= fn(x: []char) {
#C("fwrite(x.data, 1, x.n, stdout)");
#C("printf(\"\\n\")");
};
|