robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
bff9b5f010
master
1#pragma once 2 3#include "nvim/types_defs.h" 4 5typedef struct { 6schar_T data ; 7sattr_T attr ; 8}UCell ; 9 10typedef struct { 11int row ,col ; 12int width ,height ; 13UCell ** cells ; 14}UGrid ; 15 16#define UGRID_FOREACH_CELL (grid ,row ,startcol ,endcol ,code ) \ 17 do { \ 18 UCell *row_cells = (grid)->cells[row]; \ 19 for (int curcol = startcol; curcol < endcol; curcol++) { \ 20 UCell *cell = row_cells + curcol; \ 21 (void)(cell); \ 22 code; \ 23 } \ 24 } while (0) 25 26#include "tui/ugrid.h.generated.h"