Got rid of "struct long_vec", envector(), devector(), etc.
[pspp] / src / tab.c
index 3166740f2002645b4f3db15deb088a675ba077ad..862028a8c5ab56959896e8b9cb8c9deb1f9c1c65 100644 (file)
--- a/src/tab.c
+++ b/src/tab.c
@@ -612,6 +612,11 @@ tab_float (struct tab_table *table, int c, int r, unsigned char opt,
 
   assert (table != NULL && w <= 40);
   
+  assert (c >= 0);
+  assert (c < table->nc);
+  assert (r >= 0);
+  assert (r < table->nr);
+
   f.type = FMT_F;
   f.w = w;
   f.d = d;
@@ -1258,7 +1263,7 @@ struct som_table_class tab_table_class =
 
    FIXME: Doesn't use r1?  Huh?  */
 static int
-render_strip (int x, int y, int r, int c1, int c2, int r1 unused, int r2)
+render_strip (int x, int y, int r, int c1, int c2, int r1 UNUSED, int r2)
 {
   int x_origin = x;