Commit 3ed36514 authored by Gerd Moellmann's avatar Gerd Moellmann

(adjust_glyph_matrix, enable_glyph_matrix_rows):

Add assertions.
parent 7ecd4937
......@@ -69,7 +69,6 @@
* startup.el (command-line-1, fancy-splash-text): Change the
text to sound more friendly.
>>>>>>> 1.1138
2000-09-23 Thien-Thi Nguyen <ttn@gnu.org>
* progmodes/hideshow.el: Update author email address.
......
......@@ -667,6 +667,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
/* Number of rows to be used by MATRIX. */
matrix->nrows = dim.height;
xassert (matrix->nrows >= 0);
/* Mark rows in a current matrix of a window as not having valid
contents. It's important to not do this for desired matrices.
......@@ -809,6 +810,10 @@ enable_glyph_matrix_rows (matrix, start, end, enabled_p)
int start, end;
int enabled_p;
{
xassert (start <= end);
xassert (start >= 0 && start < matrix->nrows);
xassert (end >= 0 && end <= matrix->nrows);
for (; start < end; ++start)
matrix->rows[start].enabled_p = enabled_p != 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment