/* -*-c-*-
*
- * $Id: testrig.c,v 1.5 1999/05/21 22:14:30 mdw Exp $
+ * $Id: testrig.c,v 1.6 1999/11/16 15:03:23 mdw Exp $
*
* Generic test driver
*
/*----- Revision history --------------------------------------------------*
*
* $Log: testrig.c,v $
+ * Revision 1.6 1999/11/16 15:03:23 mdw
+ * Mark test types as constant.
+ *
* Revision 1.5 1999/05/21 22:14:30 mdw
* Take advantage of the new dynamic string macros.
*
fprintf(fp, "%02x", *(unsigned char *)p);
}
-test_type type_hex = { cvt_hex, dump_hex };
+const test_type type_hex = { cvt_hex, dump_hex };
/* --- @type_string@ --- */
DWRITE(d, fp);
}
-test_type type_string = { cvt_string, dump_string };
+const test_type type_string = { cvt_string, dump_string };
/* --- @type_int@ --- */
fprintf(fp, "%i", *(int *)(d->buf));
}
-test_type type_int = { cvt_int, dump_int };
+const test_type type_int = { cvt_int, dump_int };
/* --- @test_run@ --- *
*