annotate Meerwald/coord.h @ 22:d8551fb39a5e default tip

Added tag v0.6 for changeset 1c4ccd635a68
author Peter Meerwald-Stadler <pmeerw@pmeerw.net>
date Sat, 28 Jan 2023 23:57:51 +0100
parents be303a3f5ea8
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.