From 133b6ec86f5c1723d06abd3b096c24406be4cea6 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 21 Aug 2009 12:32:38 +0000 Subject: Fixed `nf' behaviour (had broken with de-chunking). Added warnings if literal context already open/closed. --- libman.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libman.h') diff --git a/libman.h b/libman.h index f7853fc6..ee1f67a6 100644 --- a/libman.h +++ b/libman.h @@ -1,4 +1,4 @@ -/* $Id: libman.h,v 1.18 2009/08/19 12:15:58 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 }; @@ -106,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 -- cgit v1.2.3