=================================================================== RCS file: /cvs/mandoc/mdoc.h,v retrieving revision 1.98 retrieving revision 1.101 diff -u -p -r1.98 -r1.101 --- mandoc/mdoc.h 2010/07/02 12:54:33 1.98 +++ mandoc/mdoc.h 2010/07/13 23:53:20 1.101 @@ -1,6 +1,6 @@ -/* $Id: mdoc.h,v 1.98 2010/07/02 12:54:33 kristaps Exp $ */ +/* $Id: mdoc.h,v 1.101 2010/07/13 23:53:20 schwarze Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2008, 2009, 2010 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 @@ -279,6 +279,12 @@ enum mdoc_disp { DISP_literal }; +enum mdoc_auth { + AUTH__NONE = 0, + AUTH_split, + AUTH_nosplit +}; + enum mdoc_font { FONT__NONE = 0, FONT_Em, @@ -297,12 +303,18 @@ struct mdoc_bl { const char *offs; /* -offset */ enum mdoc_list type; /* -tag, -enum, etc. */ int comp; /* -compact */ + size_t ncols; /* -column arg count */ + const char **cols; /* -column val ptr */ }; struct mdoc_bf { enum mdoc_font font; /* font */ }; +struct mdoc_an { + enum mdoc_auth auth; /* -split, etc. */ +}; + /* Node in AST. */ struct mdoc_node { struct mdoc_node *parent; /* parent AST node */ @@ -332,6 +344,7 @@ struct mdoc_node { enum mdoc_endbody end; /* BODY */ union { + struct mdoc_an An; struct mdoc_bd *Bd; struct mdoc_bf *Bf; struct mdoc_bl *Bl;