=================================================================== RCS file: /cvs/mandoc/libmdoc.h,v retrieving revision 1.57 retrieving revision 1.60 diff -u -p -r1.57 -r1.60 --- mandoc/libmdoc.h 2010/06/27 16:18:13 1.57 +++ mandoc/libmdoc.h 2010/07/07 15:04:54 1.60 @@ -1,4 +1,4 @@ -/* $Id: libmdoc.h,v 1.57 2010/06/27 16:18:13 kristaps Exp $ */ +/* $Id: libmdoc.h,v 1.60 2010/07/07 15:04:54 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -17,7 +17,6 @@ #ifndef LIBMDOC_H #define LIBMDOC_H -#include "regs.h" #include "mdoc.h" enum mdoc_next { @@ -36,6 +35,7 @@ struct mdoc { #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 */ +#define MDOC_SYNOPSIS (1 << 7) /* SYNOPSIS-style formatting */ int pflags; enum mdoc_next next; /* where to put the next node */ struct mdoc_node *last; /* the last node parsed */ @@ -109,6 +109,9 @@ int mdoc_block_alloc(struct mdoc *, int, int, int mdoc_head_alloc(struct mdoc *, int, int, enum mdoct); int mdoc_tail_alloc(struct mdoc *, int, int, enum mdoct); int mdoc_body_alloc(struct mdoc *, int, int, enum mdoct); +int mdoc_endbody_alloc(struct mdoc *m, int line, int pos, + enum mdoct tok, struct mdoc_node *body, + enum mdoc_endbody end); void mdoc_node_delete(struct mdoc *, struct mdoc_node *); void mdoc_hash_init(void); enum mdoct mdoc_hash_find(const char *);