chiark / gitweb /
Be more conservative in base-64 encoding.
[mLib] / testrig.h
index f026f4bbe6a99c3622fe752f779bb7759a3231dc..e0e471c644cb9643711019ae80f42a6f12f93f2b 100644 (file)
--- a/testrig.h
+++ b/testrig.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: testrig.h,v 1.4 1999/07/06 19:15:28 mdw Exp $
+ * $Id: testrig.h,v 1.6 1999/12/10 23:41:37 mdw Exp $
  *
  * Generic test driver
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: testrig.h,v $
+ * Revision 1.6  1999/12/10 23:41:37  mdw
+ * Support for different sizes and types of integers.
+ *
+ * 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.
  *
@@ -44,8 +50,8 @@
  *
  */
 
-#ifndef TESTER_H
-#define TESTER_H
+#ifndef MLIB_TESTER_H
+#define MLIB_TESTER_H
 
 #ifdef __cplusplus
   extern "C" {
@@ -55,6 +61,7 @@
 
 #include <stddef.h>
 
+#include "bits.h"
 #include "dstr.h"
 
 /*----- Magical numbers ---------------------------------------------------*/
@@ -75,14 +82,17 @@ 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 */
+  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;
+extern const test_type type_long;
+extern const test_type type_ulong;
+extern const test_type type_uint32;
 
 /*----- Functions provided ------------------------------------------------*/