grid: add grid_free()

This commit is contained in:
Daniel Eklöf 2021-02-22 10:20:52 +01:00
parent ebf8070244
commit bb74fe3f7d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 18 additions and 14 deletions

2
grid.h
View file

@ -4,6 +4,8 @@
#include "debug.h"
#include "terminal.h"
void grid_free(struct grid *grid);
void grid_swap_row(struct grid *grid, int row_a, int row_b);
struct row *grid_row_alloc(int cols, bool initialize);
void grid_row_free(struct row *row);