lib/keyword.3.in, lib/sod-structs.3.in: Use `.VS' and `.VE'.
[sod] / lib / keyword.3.in
index dc2aa5f..826d80c 100644 (file)
@@ -204,16 +204,12 @@ so code size will naturally suffer.
 .
 .SS Type definitions
 The header file defines two simple structure types.
-.PP
-.IP
-.nf
-.ft B
+.VS
 struct kwval {
   const char *kw;
   const void *val;
 };
-.fi
-.PP
+.VE
 The
 .B kwval
 structure describes a keyword argument name/value pair.
@@ -230,16 +226,12 @@ of the value.
 makes the size of a
 .B kwval
 object independent of the actual argument type.)
-.PP
-.IP
-.nf
-.ft B
+.VS
 struct kwtab {
   const struct kwval *v;
   size_t n;
 };
-.fi
-.PP
+.VE
 The
 .B kwtab
 structure describes a list of keyword arguments,
@@ -489,16 +481,12 @@ It should expand to a sequence of one or more list items of the form
 with no separation between them.
 .PP
 For example:
-.IP
-.nf
-.ft B
+.VS
 #define example_KWSET(_) \e
 .in +4m
 _(int, x, 0) \e
 _(const char *, y, NULL)
-.fi
-.ft P
-.PP
+.VE
 Each
 .I name
 should be a distinct C identifier;
@@ -1114,9 +1102,7 @@ As an example of the kind of special effect
 which can be achieved using this hook,
 the following hacking answers whether
 a function recognizes a particular keyword argument.
-.IP
-.nf
-.ft B
+.VS
 #define KWARGS_TEST(k, val) KWARGS(K(k, val) K(kw.unknown, 0))
 
 static jmp_buf kw_test_jmp;
@@ -1145,8 +1131,7 @@ KW_TEST(f, somefunc(1, "two", 3, KWARGS_TEST("shiny", 68.7)));
 /* now f is nonzero if `somefunc' accepts the `shiny' keyword
  * (which we hope wants a double argument)
  */
-.ft P
-.fi
+.VE
 .
 .\"--------------------------------------------------------------------------
 .SH BUGS