-/* $OpenBSD: grid.c,v 1.42 2015/04/23 07:45:50 deraadt Exp $ */
+/* $OpenBSD: grid.c,v 1.43 2015/05/08 15:56:49 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
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)
{
}
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 *
-/* $OpenBSD: server-client.c,v 1.137 2015/05/06 07:52:06 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.138 2015/05/08 15:56:49 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
return;
c->flags |= CLIENT_IDENTIFIED;
-#ifdef __CYGWIN__
- c->fd = open(c->ttyname, O_RDWR|O_NOCTTY);
- c->cwd = open(".", O_RDONLY);
-#endif
-
if (c->flags & CLIENT_CONTROL) {
c->stdin_callback = control_callback;