diff options
author | Thomas Adam <thomas@xteddy.org> | 2015-05-09 12:51:41 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2015-05-09 12:52:38 +0100 |
commit | 504b97b6a4314a7a052d9b05de746515e2a03628 (patch) | |
tree | 6b6316b7f7d35725bd0ce2377adae1847cc324da /grid.c | |
parent | 6525ca51584636ef781bda147d37d5d0d10899e0 (diff) | |
parent | 92faa2eaebd32117f01b0b7d7ae81abdfde2d935 (diff) | |
download | rtmux-504b97b6a4314a7a052d9b05de746515e2a03628.tar.gz rtmux-504b97b6a4314a7a052d9b05de746515e2a03628.tar.bz2 rtmux-504b97b6a4314a7a052d9b05de746515e2a03628.zip |
Merge branch 'obsd-master'
Conflicts:
tmux.h
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 29 |
1 files changed, 10 insertions, 19 deletions
@@ -49,15 +49,16 @@ const struct grid_cell grid_default_cell = { 0, 0, 8, 8, (1 << 4) | 1, " " }; int grid_check_y(struct grid *, u_int); -#ifdef DEBUG -int -grid_check_y(struct grid *gd, u_int py) -{ - if ((py) >= (gd)->hsize + (gd)->sy) - log_fatalx("y out of range: %u", py); - return (0); -} -#else +void grid_reflow_join(struct grid *, u_int *, struct grid_line *, u_int); +void grid_reflow_split(struct grid *, u_int *, struct grid_line *, u_int, + u_int); +void grid_reflow_move(struct grid *, u_int *, struct grid_line *); +size_t grid_string_cells_fg(const struct grid_cell *, int *); +size_t grid_string_cells_bg(const struct grid_cell *, int *); +void grid_string_cells_code(const struct grid_cell *, + const struct grid_cell *, char *, size_t, int); + +/* Check grid y position. */ int grid_check_y(struct grid *gd, u_int py) { @@ -67,16 +68,6 @@ grid_check_y(struct grid *gd, u_int py) } return (0); } -#endif - -void grid_reflow_join(struct grid *, u_int *, struct grid_line *, u_int); -void grid_reflow_split(struct grid *, u_int *, struct grid_line *, u_int, - u_int); -void grid_reflow_move(struct grid *, u_int *, struct grid_line *); -size_t grid_string_cells_fg(const struct grid_cell *, int *); -size_t grid_string_cells_bg(const struct grid_cell *, int *); -void grid_string_cells_code(const struct grid_cell *, - const struct grid_cell *, char *, size_t, int); /* Create a new grid. */ struct grid * |