=================================================================== RCS file: /cvs/mandoc/mdoc.h,v retrieving revision 1.40 retrieving revision 1.49 diff -u -p -r1.40 -r1.49 --- mandoc/mdoc.h 2009/03/08 18:02:36 1.40 +++ mandoc/mdoc.h 2009/03/16 23:37:28 1.49 @@ -1,4 +1,4 @@ -/* $Id: mdoc.h,v 1.40 2009/03/08 18:02:36 kristaps Exp $ */ +/* $Id: mdoc.h,v 1.49 2009/03/16 23:37:28 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -19,6 +19,8 @@ #ifndef MDOC_H #define MDOC_H +#include + /* * This library implements a validating scanner/parser for ``mdoc'' roff * macro documents, a.k.a. BSD manual page documents. The mdoc.c file @@ -29,8 +31,6 @@ /* What follows is a list of ALL possible macros. */ -/* TODO: Brq et al. */ - #define MDOC___ 0 #define MDOC_Dd 1 #define MDOC_Dt 2 @@ -138,7 +138,18 @@ #define MDOC_Fr 104 #define MDOC_Ud 105 #define MDOC_Lb 106 -#define MDOC_MAX 107 +#define MDOC_Ap 107 +#define MDOC_Lp 108 +#define MDOC_Lk 109 +#define MDOC_Mt 110 +#define MDOC_Brq 111 +#define MDOC_Bro 112 +#define MDOC_Brc 113 +#define MDOC__C 114 +#define MDOC_Es 115 +#define MDOC_En 116 +#define MDOC_Dx 117 +#define MDOC_MAX 118 /* What follows is a list of ALL possible macro arguments. */ @@ -167,7 +178,8 @@ #define MDOC_Words 22 #define MDOC_Emphasis 23 #define MDOC_Symbolic 24 -#define MDOC_ARG_MAX 25 +#define MDOC_Nested 25 +#define MDOC_ARG_MAX 26 /* Warnings are either syntax or groff-compatibility. */ enum mdoc_warn { @@ -262,6 +274,7 @@ struct mdoc_node { #define MDOC_IGN_SCOPE (1 << 0) /* Ignore scope violations. */ #define MDOC_IGN_ESCAPE (1 << 1) /* Ignore bad escape sequences. */ +#define MDOC_IGN_MACRO (1 << 2) /* Ignore unknown macros. */ /* Call-backs for parse messages. */ struct mdoc_cb {