=================================================================== RCS file: /cvs/mandoc/term.h,v retrieving revision 1.1 retrieving revision 1.5 diff -u -p -r1.1 -r1.5 --- mandoc/term.h 2009/02/21 19:05:28 1.1 +++ mandoc/term.h 2009/02/24 16:16:45 1.5 @@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.1 2009/02/21 19:05:28 kristaps Exp $ */ +/* $Id: term.h,v 1.5 2009/02/24 16:16:45 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -35,6 +35,8 @@ struct termp { #define TERMP_NOSPACE (1 << 2) /* No space before words. */ #define TERMP_NOLPAD (1 << 3) /* No leftpad before flush. */ #define TERMP_NOBREAK (1 << 4) /* No break after flush. */ +#define TERMP_LITERAL (1 << 5) /* Literal words. */ +#define TERMP_IGNDELIM (1 << 6) /* Delims like regulars. */ char *buf; }; @@ -42,7 +44,7 @@ struct termact { int (*pre)(struct termp *, const struct mdoc_meta *, const struct mdoc_node *); - int (*post)(struct termp *, + void (*post)(struct termp *, const struct mdoc_meta *, const struct mdoc_node *); }; @@ -51,6 +53,12 @@ void newln(struct termp *); void vspace(struct termp *); void word(struct termp *, const char *); void flushln(struct termp *); +void transcode(struct termp *, + const char *, size_t); + +void subtree(struct termp *, + const struct mdoc_meta *, + const struct mdoc_node *); const struct termact *termacts;