summaryrefslogtreecommitdiffstats
path: root/src/marks.h
blob: 7318819fb2e80d1dea172b737b16a0db41f7456f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "range.h"

// struct mark
// row and col -1 indicates the node represents
// a mark of a range of cells rather than a mark of just one cell
struct mark {
    int row;
    int col;
    srange * rng;
};
typedef struct mark mark;

void create_mark_array();
void free_marks_array();
void set_cell_mark(char c, int row, int col);
void set_range_mark(char c, struct srange * s);
void fix_marks(int deltar, int deltac, int row_desde, int row_hasta, int col_desde, int col_hasta);
mark * get_mark(char c);