=================================================================== RCS file: /cvs/mandoc/libmdoc.h,v retrieving revision 1.50 retrieving revision 1.54 diff -u -p -r1.50 -r1.54 --- mandoc/libmdoc.h 2010/05/24 12:05:04 1.50 +++ mandoc/libmdoc.h 2010/06/26 15:36:37 1.54 @@ -1,6 +1,6 @@ -/* $Id: libmdoc.h,v 1.50 2010/05/24 12:05:04 schwarze Exp $ */ +/* $Id: libmdoc.h,v 1.54 2010/06/26 15:36:37 kristaps Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2008, 2009 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,6 +17,7 @@ #ifndef LIBMDOC_H #define LIBMDOC_H +#include "regs.h" #include "mdoc.h" enum mdoc_next { @@ -34,6 +35,7 @@ struct mdoc { #define MDOC_NEWLINE (1 << 3) /* first macro/text in a line */ #define MDOC_PHRASELIT (1 << 4) /* literal within a partila phrase */ #define MDOC_PPHRASE (1 << 5) /* within a partial phrase */ +#define MDOC_FREECOL (1 << 6) /* `It' invocation should close */ int pflags; enum mdoc_next next; struct mdoc_node *last; @@ -117,8 +119,7 @@ const char *mdoc_a2st(const char *); const char *mdoc_a2arch(const char *); const char *mdoc_a2vol(const char *); const char *mdoc_a2msec(const char *); -int mdoc_valid_pre(struct mdoc *, - const struct mdoc_node *); +int mdoc_valid_pre(struct mdoc *, struct mdoc_node *); int mdoc_valid_post(struct mdoc *); int mdoc_action_pre(struct mdoc *, struct mdoc_node *);