]> Pileus Git - ~andy/ct/blob - knot/knot.h
Use dynamic memory, fix CSS for tables
[~andy/ct] / knot / knot.h
1 enum {
2         LEFT  = 1<<0,
3         RIGHT = 1<<1,
4         UP    = 1<<2,
5         DOWN  = 1<<3,
6 };
7
8 typedef struct {
9         char c;
10         int top;
11         int bot;
12 } tile_t;
13
14 typedef struct {
15         tile_t *cols;
16         int ncols;
17 } row_t;
18
19 void print_index(row_t *rows);