=================================================================== RCS file: /cvs/mandoc/mdoc.h,v retrieving revision 1.30 retrieving revision 1.32 diff -u -p -r1.30 -r1.32 --- mandoc/mdoc.h 2009/02/21 21:00:06 1.30 +++ mandoc/mdoc.h 2009/02/22 22:58:39 1.32 @@ -1,4 +1,4 @@ -/* $Id: mdoc.h,v 1.30 2009/02/21 21:00:06 kristaps Exp $ */ +/* $Id: mdoc.h,v 1.32 2009/02/22 22:58:39 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -382,7 +382,7 @@ struct mdoc_node { #define MDOC_ACTED (1 << 1) enum mdoc_type type; union mdoc_data data; - /* FIXME: have an enum mdoc_sec. */ + enum mdoc_sec sec; }; /* Call-backs for parse messages. */ @@ -413,10 +413,10 @@ struct mdoc *mdoc_alloc(void *data, const struct mdoc int mdoc_parseln(struct mdoc *, int, char *buf); /* Get result first node (after mdoc_endparse!). */ -const struct mdoc_node *mdoc_node(struct mdoc *); +const struct mdoc_node *mdoc_node(const struct mdoc *); /* Get result meta-information (after mdoc_endparse!). */ -const struct mdoc_meta *mdoc_meta(struct mdoc *); +const struct mdoc_meta *mdoc_meta(const struct mdoc *); /* Signal end of parse sequence (boolean retval). */ int mdoc_endparse(struct mdoc *);