Include types with tabulated function arguments and structure members.
[mLib] / man / testrig.3
index db3a261..9138b88 100644 (file)
@@ -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