annotate Meerwald/coord.h @ 8:f83ef905a63d

fixing many warnings increase capacity for coordinates in bruyn fix some uninit. variables
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 22 Apr 2008 13:36:05 +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.