X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/c4604222386ea3939b89bb2b59c1bf69f126c06d..2bcccf0dba8f2c504e9c3597a11177aaca90023c:/mdoc.h diff --git a/mdoc.h b/mdoc.h index 24811c90..dc4be587 100644 --- a/mdoc.h +++ b/mdoc.h @@ -1,6 +1,6 @@ -/* $Id: mdoc.h,v 1.87 2010/06/12 12:10:55 kristaps Exp $ */ +/* $Id: mdoc.h,v 1.92 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 @@ -155,6 +155,7 @@ enum mdoct { /* What follows is a list of ALL possible macro arguments. */ +/* FIXME: make this into an enum. */ #define MDOC_Split 0 #define MDOC_Nosplit 1 #define MDOC_Ragged 2 @@ -279,6 +280,8 @@ struct mdoc_bd { }; struct mdoc_bl { + const char *width; /* -width */ + const char *offs; /* -offset */ enum mdoc_list type; /* -tag, -enum, etc. */ int comp; /* -compact */ }; @@ -333,7 +336,9 @@ struct mdoc; void mdoc_free(struct mdoc *); struct mdoc *mdoc_alloc(void *, int, mandocmsg); void mdoc_reset(struct mdoc *); -int mdoc_parseln(struct mdoc *, int, char *, int); +int mdoc_parseln(struct mdoc *, + const struct regset *, + int, char *, int); const struct mdoc_node *mdoc_node(const struct mdoc *); const struct mdoc_meta *mdoc_meta(const struct mdoc *); int mdoc_endparse(struct mdoc *);