=================================================================== RCS file: /cvs/mandoc/libman.h,v retrieving revision 1.17 retrieving revision 1.19 diff -u -p -r1.17 -r1.19 --- mandoc/libman.h 2009/08/19 09:14:50 1.17 +++ mandoc/libman.h 2009/08/21 12:32:38 1.19 @@ -1,4 +1,4 @@ -/* $Id: libman.h,v 1.17 2009/08/19 09:14:50 kristaps Exp $ */ +/* $Id: libman.h,v 1.19 2009/08/21 12:32:38 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -33,6 +33,7 @@ struct man { #define MAN_HALT (1 << 0) #define MAN_ELINE (1 << 1) /* Next-line element scope. */ #define MAN_BLINE (1 << 2) /* Next-line block scope. */ +#define MAN_LITERAL (1 << 3) /* Literal input. */ enum man_next next; struct man_node *last; struct man_node *first; @@ -58,6 +59,8 @@ enum merr { WMACROFORM, WEXITSCOPE, WNOSCOPE, + WOLITERAL, + WNLITERAL, WERRMAX }; @@ -68,6 +71,7 @@ struct man_macro { int (*fp)(MACRO_PROT_ARGS); int flags; #define MAN_SCOPED (1 << 0) +#define MAN_EXPLICIT (1 << 1) }; extern const struct man_macro *const man_macros; @@ -105,6 +109,7 @@ int man_verr(struct man *, int, int, const char *, int man_valid_post(struct man *); int man_valid_pre(struct man *, const struct man_node *); int man_action_post(struct man *); +int man_action_pre(struct man *, struct man_node *); int man_unscope(struct man *, const struct man_node *); __END_DECLS