summaryrefslogtreecommitdiffstats
path: root/grid.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-11 02:23:52 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-11 02:23:52 +0000
commit9e56f538952f0e15485fc03fc21ebad5d926c05e (patch)
tree99a53c009d119d6e8c10b8a34b96554732e5c372 /grid.c
parentb4fe99194fa58381c5490274532b39ce4e66e2f7 (diff)
Correct comment.
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/grid.c b/grid.c
index c5a94310..8a4a2576 100644
--- a/grid.c
+++ b/grid.c
@@ -1,4 +1,4 @@
-/* $Id: grid.c,v 1.5 2009-01-10 01:51:21 nicm Exp $ */
+/* $Id: grid.c,v 1.6 2009-01-11 02:23:52 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -26,18 +26,17 @@
* Grid data. This is the basic data structure that represents what is shown on
* screen.
*
- * A grid is a grid of cells (struct grid_cell). It is sparse, in that cells
- * are not allocated until they are written to. The grid is logically split
- * into history and viewable data with the history starting at row (line) 0 and
- * extending to (hsize - 1); from hsize to hsize + (sy - 1) is the viewable
- * data. All functions in this file work on absolute coordinates, grid-view.c
- * has functions which work on the screen data.
+ * A grid is a grid of cells (struct grid_cell). Lines are not allocated until
+ * cells in that line are written to. The grid is split into history and
+ * viewable data with the history starting at row (line) 0 and extending to
+ * (hsize - 1); from hsize to hsize + (sy - 1) is the viewable data. All
+ * functions in this file work on absolute coordinates, grid-view.c has
+ * functions which work on the screen data.
*/
/* Default grid cell data. */
const struct grid_cell grid_default_cell = { ' ', 0, 0, 8, 8 };
-
#ifdef DEBUG
#define grid_check_x(gd, px) do { \
if ((px) >= (gd)->sx) \