Include types with tabulated function arguments and structure members.
[mLib] / man / mdwopt.3
index daa2c84..6045fed 100644 (file)
@@ -136,24 +136,24 @@ about the option in a data block.
 .PP
 The data block is a structure containing at least the following members:
 .TP
-.B arg
+.B "char *arg"
 Pointer to the argument of the current option, or null.  Argument
 strings persist for as long as the underlying command line argument
 array
 .I argv
 does, so it's usually safe just to remember the pointer.
 .TP
-.B opt
+.B "int opt"
 Value of the current option
 .TP
-.B int
+.B "int ind"
 Must be initialized to 0 before the first call to
 .BR mdwopt .
 After the last call, it is the index into
 .I argv
 of the first nonoption argument.
 .TP
-.B err
+.B "int err"
 Set to nonzero to allow
 .B mdwopt
 to emit error messages about illegal option syntax.  (This would be a
@@ -161,7 +161,7 @@ flag setting, but it has to be here for
 .B getopt
 compatibility.)
 .TP
-.B prog
+.B "char *prog"
 Contains the program's name, stripped of any path prefix.  This is an
 obsolete feature: the
 .BR quis (3)
@@ -258,16 +258,16 @@ table is of type
 .BR "struct option" ,
 which contains the following members (in order):
 .TP
-.B name
+.B "const char *name"
 Pointer to the option's name.
 .TP
-.B has_arg
+.B "int has_arg"
 A flags word describing the option.  (The name is historical.)
 .TP
-.B flag
+.B "int *flag"
 Address of the flag variable to use when this option is matched.
 .TP
-.B val
+.B "int val"
 Value to store or return when this option is matched.
 .PP
 The table is terminated by an entry whose