chiark / gitweb /
Version bump.
[mLib] / testrig.h
index fb7147028543cd4f637b0f0c403ca56520c18340..cf6afa872b4a755be842669bdb570954c72f8989 100644 (file)
--- a/testrig.h
+++ b/testrig.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: testrig.h,v 1.3 1999/05/06 19:51:35 mdw Exp $
+ * $Id: testrig.h,v 1.5 1999/11/16 15:03:31 mdw Exp $
  *
  * Generic test driver
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: testrig.h,v $
+ * Revision 1.5  1999/11/16 15:03:31  mdw
+ * Mark test types as constant.
+ *
+ * Revision 1.4  1999/07/06 19:15:28  mdw
+ * Comment out argument in structure definition.
+ *
  * Revision 1.3  1999/05/06 19:51:35  mdw
  * Reformatted the LGPL notice a little bit.
  *
@@ -71,15 +77,15 @@ typedef struct test_type {
 
 typedef struct test_chunk {
   const char *name;                    /* Name of this chunk */
-  int (*test)(dstr dv[]);              /* Test verification function */
-  test_type *f[TEST_FIELDMAX];         /* Field definitions */
+  int (*test)(dstr /*dv*/[]);          /* Test verification function */
+  const test_type *f[TEST_FIELDMAX];   /* Field definitions */
 } test_chunk;
 
 /*----- Predefined data types ---------------------------------------------*/
 
-extern test_type type_hex;
-extern test_type type_string;
-extern test_type type_int;
+extern const test_type type_hex;
+extern const test_type type_string;
+extern const test_type type_int;
 
 /*----- Functions provided ------------------------------------------------*/