X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/715d886dfd72c29355a83d45229fd6e48f85e318..05029c7503c717a26dc560fa56f566198ccdb707:/libman.h diff --git a/libman.h b/libman.h index 06769354..83dc6da2 100644 --- a/libman.h +++ b/libman.h @@ -1,4 +1,4 @@ -/* $Id: libman.h,v 1.28 2010/03/27 10:04:56 kristaps Exp $ */ +/* $Id: libman.h,v 1.31 2010/04/08 07:53:01 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -27,14 +27,17 @@ enum man_next { struct man { void *data; struct man_cb cb; - int pflags; - int flags; -#define MAN_HALT (1 << 0) + int pflags; /* parse flags (see man.h) */ + int svflags; /* flags saved during roff blocks */ + int flags; /* parse flags */ +#define MAN_HALT (1 << 0) /* badness happened: die */ #define MAN_ELINE (1 << 1) /* Next-line element scope. */ #define MAN_BLINE (1 << 2) /* Next-line block scope. */ #define MAN_ILINE (1 << 3) /* Ignored in next-line scope. */ #define MAN_LITERAL (1 << 4) /* Literal input. */ +#define MAN_BPLINE (1 << 5) enum man_next next; + enum man_next svnext; struct man_node *last; struct man_node *first; struct man_meta meta; @@ -63,6 +66,7 @@ enum merr { WROFFNEST, WROFFSCOPE, WTITLECASE, + WBADCOMMENT, WERRMAX };