X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/0319f58d7cd0491452c0d43213bafe0914927bed..5ce3df295ef9bc476620d9a19271239aff40214c:/testrig.h diff --git a/testrig.h b/testrig.h index f026f4b..69b2868 100644 --- 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.7 2004/04/08 01:36:13 mdw Exp $ * * Generic test driver * @@ -27,25 +27,8 @@ * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: testrig.h,v $ - * 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. - * - * Revision 1.2 1999/05/05 18:50:31 mdw - * Change licensing conditions to LGPL. - * - * Revision 1.1.1.1 1998/06/17 23:44:42 mdw - * Initial version of mLib - * - */ - -#ifndef TESTER_H -#define TESTER_H +#ifndef MLIB_TESTER_H +#define MLIB_TESTER_H #ifdef __cplusplus extern "C" { @@ -55,6 +38,7 @@ #include +#include "bits.h" #include "dstr.h" /*----- Magical numbers ---------------------------------------------------*/ @@ -75,14 +59,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 ------------------------------------------------*/