X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/1135ca5456cba54c862f8cd9d568c9c3a2b7e905..ff76c38f2d94c82b234d67e717d855b52e5d6421:/man/testrig.3 diff --git a/man/testrig.3 b/man/testrig.3 index db3a261..9138b88 100644 --- a/man/testrig.3 +++ b/man/testrig.3 @@ -98,18 +98,18 @@ typedef struct test_chunk { .VE The members of this structure are as follows: .TP -.I "name" +.B "const char *name" The name of the chunk described by this chunk definition, or null if this is the termination marker. .TP -.I "test" +.B "int (*test)(dstr dv[])" The test function. It is passed an array of dynamic strings, one for each field, and must return nonzero if the test succeeded or zero if the test failed. On success, the function should not write anything to stdout or stderr; on failure, a report of the test arguments should be emitted to stderr. .TP -.I "f" +.B "test_type *f[TEST_FIELDMAX]" Definitions of the fields. This is an array of pointers to .I "field types" (see below), terminated by a null pointer. @@ -128,15 +128,15 @@ typedef struct test_type { } test_type; .VE The -.I cvt +.B cvt member is a function called to read an input string stored in -.I buf +.B buf and output internal-format data in the dynamic string .IR d . The testrig driver has already stripped of quotes and dealt with backslash escapes. The -.I dump +.B dump member is called to write the internal-format data in dynamic string .I d to the