=================================================================== RCS file: /cvs/mandoc/mdoc.h,v retrieving revision 1.115 retrieving revision 1.119 diff -u -p -r1.115 -r1.119 --- mandoc/mdoc.h 2011/01/25 10:37:49 1.115 +++ mandoc/mdoc.h 2011/03/20 16:02:05 1.119 @@ -1,6 +1,6 @@ -/* $Id: mdoc.h,v 1.115 2011/01/25 10:37:49 kristaps Exp $ */ +/* $Id: mdoc.h,v 1.119 2011/03/20 16:02:05 kristaps Exp $ */ /* - * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons + * Copyright (c) 2008, 2009, 2010, 2011 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 @@ -191,6 +191,7 @@ enum mdoc_type { MDOC_BODY, MDOC_BLOCK, MDOC_TBL, + MDOC_EQN, MDOC_ROOT }; @@ -231,7 +232,7 @@ struct mdoc_meta { char *msec; /* `Dt' section (1, 3p, etc.) */ char *vol; /* `Dt' volume (implied) */ char *arch; /* `Dt' arch (i386, etc.) */ - time_t date; /* `Dd' normalised date */ + char *date; /* `Dd' normalised date */ char *title; /* `Dt' title (FOO, etc.) */ char *os; /* `Os' system (OpenBSD, etc.) */ char *name; /* leading `Nm' name */ @@ -401,6 +402,7 @@ struct mdoc_node { struct mdoc_node *tail; /* BLOCK */ char *string; /* TEXT */ const struct tbl_span *span; /* TBL */ + const struct eqn *eqn; /* EQN */ enum mdoc_endbody end; /* BODY */ }; @@ -422,7 +424,7 @@ __BEGIN_DECLS struct mdoc; void mdoc_free(struct mdoc *); -struct mdoc *mdoc_alloc(struct regset *, void *, mandocmsg); +struct mdoc *mdoc_alloc(struct regset *, struct mparse *); void mdoc_reset(struct mdoc *); int mdoc_parseln(struct mdoc *, int, char *, int); const struct mdoc_node *mdoc_node(const struct mdoc *); @@ -430,6 +432,8 @@ const struct mdoc_meta *mdoc_meta(const struct mdoc *) int mdoc_endparse(struct mdoc *); int mdoc_addspan(struct mdoc *, const struct tbl_span *); +int mdoc_addeqn(struct mdoc *, + const struct eqn *); __END_DECLS