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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
1 #ifndef COORD_H
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
2 #define COORD_H
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
3
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
4 struct coord {
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
5 int x;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
6 int y;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
7 };
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
8
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
9 struct coords {
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
10 int count;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
11 int max;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
12 struct coord *values;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
13 };
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
14
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
15 struct coords *alloc_coords(int n);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
16 void free_coords(struct coords *c);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
17 int init_coords(struct coords *c, int n);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
18 int add_coord(struct coords *c, int x, int y);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
19
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
20 #endif

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.