Mercurial > hg > wm
annotate Meerwald-dir/coord.h @ 25:5a57a145bccb default tip
Added tag v0.7 for changeset 9f20bce6184e
| author | Peter Meerwald-Stadler <pmeerw@pmeerw.net> |
|---|---|
| date | Fri, 20 Dec 2024 13:32:15 +0100 |
| parents | 9f20bce6184e |
| children |
| rev | line source |
|---|---|
| 0 | 1 #ifndef COORD_H |
| 2 #define COORD_H | |
| 3 | |
| 4 struct coord { | |
| 5 int x; | |
| 6 int y; | |
| 7 }; | |
| 8 | |
| 9 struct coords { | |
| 10 int count; | |
| 11 int max; | |
| 12 struct coord *values; | |
| 13 }; | |
| 14 | |
| 15 struct coords *alloc_coords(int n); | |
| 16 void free_coords(struct coords *c); | |
| 17 int init_coords(struct coords *c, int n); | |
| 18 int add_coord(struct coords *c, int x, int y); | |
| 19 | |
| 20 #endif |
