fmt.c - vx32 - Local 9vx git repository for patches.
(HTM) git clone git://r-36.net/vx32
(DIR) Log
(DIR) Files
(DIR) Refs
---
fmt.c (269B)
---
1 #include "u.h"
2 #include "lib.h"
3 #include "draw.h"
4
5 int
6 Rfmt(Fmt *f)
7 {
8 Rectangle r;
9
10 r = va_arg(f->args, Rectangle);
11 return fmtprint(f, "%P %P", r.min, r.max);
12 }
13
14 int
15 Pfmt(Fmt *f)
16 {
17 Point p;
18
19 p = va_arg(f->args, Point);
20 return fmtprint(f, "[%d %d]", p.x, p.y);
21 }
22