annotate Meerwald/coord.h @ 1:647ab0f05aae v0.4

drop, not needed
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 14 Aug 2007 19:58:25 +0200
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.