Print this page
Various tweaks -- add our sections, etc.


 190  * Section (named/unnamed) of `Sh'.   Note that these appear in the
 191  * conventional order imposed by mdoc.7.  In the case of SEC_NONE, no
 192  * section has been invoked (this shouldn't happen).  SEC_CUSTOM refers
 193  * to other sections.
 194  */
 195 enum    mdoc_sec {
 196         SEC_NONE = 0,
 197         SEC_NAME, /* NAME */
 198         SEC_LIBRARY, /* LIBRARY */
 199         SEC_SYNOPSIS, /* SYNOPSIS */
 200         SEC_DESCRIPTION, /* DESCRIPTION */
 201         SEC_IMPLEMENTATION, /* IMPLEMENTATION NOTES */
 202         SEC_RETURN_VALUES, /* RETURN VALUES */
 203         SEC_ENVIRONMENT,  /* ENVIRONMENT */
 204         SEC_FILES, /* FILES */
 205         SEC_EXIT_STATUS, /* EXIT STATUS */
 206         SEC_EXAMPLES, /* EXAMPLES */
 207         SEC_DIAGNOSTICS, /* DIAGNOSTICS */
 208         SEC_COMPATIBILITY, /* COMPATIBILITY */
 209         SEC_ERRORS, /* ERRORS */




 210         SEC_SEE_ALSO, /* SEE ALSO */
 211         SEC_STANDARDS, /* STANDARDS */
 212         SEC_HISTORY, /* HISTORY */
 213         SEC_AUTHORS, /* AUTHORS */
 214         SEC_CAVEATS, /* CAVEATS */
 215         SEC_BUGS, /* BUGS */
 216         SEC_SECURITY, /* SECURITY */
 217         SEC_CUSTOM, 
 218         SEC__MAX
 219 };
 220 
 221 struct  mdoc_meta {
 222         char             *msec; /* `Dt' section (1, 3p, etc.) */
 223         char             *vol; /* `Dt' volume (implied) */
 224         char             *arch; /* `Dt' arch (i386, etc.) */
 225         char             *date; /* `Dd' normalised date */
 226         char             *title; /* `Dt' title (FOO, etc.) */
 227         char             *os; /* `Os' system (OpenBSD, etc.) */
 228         char             *name; /* leading `Nm' name */
 229 };




 190  * Section (named/unnamed) of `Sh'.   Note that these appear in the
 191  * conventional order imposed by mdoc.7.  In the case of SEC_NONE, no
 192  * section has been invoked (this shouldn't happen).  SEC_CUSTOM refers
 193  * to other sections.
 194  */
 195 enum    mdoc_sec {
 196         SEC_NONE = 0,
 197         SEC_NAME, /* NAME */
 198         SEC_LIBRARY, /* LIBRARY */
 199         SEC_SYNOPSIS, /* SYNOPSIS */
 200         SEC_DESCRIPTION, /* DESCRIPTION */
 201         SEC_IMPLEMENTATION, /* IMPLEMENTATION NOTES */
 202         SEC_RETURN_VALUES, /* RETURN VALUES */
 203         SEC_ENVIRONMENT,  /* ENVIRONMENT */
 204         SEC_FILES, /* FILES */
 205         SEC_EXIT_STATUS, /* EXIT STATUS */
 206         SEC_EXAMPLES, /* EXAMPLES */
 207         SEC_DIAGNOSTICS, /* DIAGNOSTICS */
 208         SEC_COMPATIBILITY, /* COMPATIBILITY */
 209         SEC_ERRORS, /* ERRORS */
 210         SEC_ARCHITECTURE,
 211         SEC_CODE_SET_INDEPENDENCE,
 212         SEC_INTERFACE_STABILITY,
 213         SEC_MULTITHREADING_LEVEL,
 214         SEC_SEE_ALSO, /* SEE ALSO */
 215         SEC_STANDARDS, /* STANDARDS */
 216         SEC_HISTORY, /* HISTORY */
 217         SEC_AUTHORS, /* AUTHORS */
 218         SEC_CAVEATS, /* CAVEATS */
 219         SEC_BUGS, /* BUGS */
 220         SEC_SECURITY, /* SECURITY */
 221         SEC_CUSTOM, 
 222         SEC__MAX
 223 };
 224 
 225 struct  mdoc_meta {
 226         char             *msec; /* `Dt' section (1, 3p, etc.) */
 227         char             *vol; /* `Dt' volume (implied) */
 228         char             *arch; /* `Dt' arch (i386, etc.) */
 229         char             *date; /* `Dd' normalised date */
 230         char             *title; /* `Dt' title (FOO, etc.) */
 231         char             *os; /* `Os' system (OpenBSD, etc.) */
 232         char             *name; /* leading `Nm' name */
 233 };