X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/c7f30b36a38f7c6daae7262ae866f886d0433350..d66299dc49059ec3047a39c8fc576a2700b1eb48:/testrig.c diff --git a/testrig.c b/testrig.c index 95aca95..0531e73 100644 --- a/testrig.c +++ b/testrig.c @@ -1,6 +1,6 @@ /* -*-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 * @@ -30,6 +30,9 @@ /*----- 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. * @@ -216,7 +219,7 @@ static void dump_hex(dstr *d, FILE *fp) 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@ --- */ @@ -230,7 +233,7 @@ static void dump_string(dstr *d, FILE *fp) DWRITE(d, fp); } -test_type type_string = { cvt_string, dump_string }; +const test_type type_string = { cvt_string, dump_string }; /* --- @type_int@ --- */ @@ -245,7 +248,7 @@ static void dump_int(dstr *d, FILE *fp) 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@ --- * *