From 3df885cd6a6e876defef8940073b80b0b301ed63 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 23 Jul 2011 18:44:42 +0000 Subject: Note GNU extensions in eqn.7. Also add `col' and `pile', which are mentioned briefly in the eqn User's Manual, but otherwise are unspecified. --- eqn.7 | 8 +++++--- eqn.c | 4 +++- mandoc.h | 4 +++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/eqn.7 b/eqn.7 index 1e4faca1..5ada9f53 100644 --- a/eqn.7 +++ b/eqn.7 @@ -1,4 +1,4 @@ -.\" $Id: eqn.7,v 1.23 2011/07/23 18:41:18 kristaps Exp $ +.\" $Id: eqn.7,v 1.24 2011/07/23 18:44:42 kristaps Exp $ .\" .\" Copyright (c) 2011 Kristaps Dzonsons .\" @@ -81,9 +81,9 @@ box : text | font box | \*qsize\*q text box | \*qleft\*q text eqn [\*qright\*q text] -col : \*qlcol\*q | \*qrcol\*q | \*qccol\*q +col : \*qlcol\*q | \*qrcol\*q | \*qccol\*q | \*qcol\*q text : [^space\e\*q]+ | \e\*q.*\e\*q -pile : \*qlpile\*q | \*qcpile\*q | \*qrpile\*q +pile : \*qlpile\*q | \*qcpile\*q | \*qrpile\*q | \*qpile\*q pos : \*qover\*q | \*qsup\*q | \*qsub\*q | \*qto\*q | \*qfrom\*q mark : \*qdot\*q | \*qdotdot\*q | \*qhat\*q | \*qtilde\*q | \*qvec\*q | \*qdyad\*q | \*qbar\*q | \*qunder\*q @@ -184,6 +184,7 @@ The and .Ar val are not expanded for replacements. +This statement is a GNU extension. .It Cm undef Unset a previously-defined key. Its syntax is as follows: @@ -196,6 +197,7 @@ is discarded. The .Ar key is not expanded for replacements. +This statement is a GNU extension. .El .Sh COMPATIBILITY This section documents the compatibility of mandoc diff --git a/eqn.c b/eqn.c index da085fa1..9c3b9783 100644 --- a/eqn.c +++ b/eqn.c @@ -1,4 +1,4 @@ -/* $Id: eqn.c,v 1.36 2011/07/23 18:41:18 kristaps Exp $ */ +/* $Id: eqn.c,v 1.37 2011/07/23 18:44:42 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -205,9 +205,11 @@ static const struct eqnstr eqnposs[EQNPOS__MAX] = { static const struct eqnstr eqnpiles[EQNPILE__MAX] = { { "", 0 }, /* EQNPILE_NONE */ + { "pile", 4 }, /* EQNPILE_PILE */ { "cpile", 5 }, /* EQNPILE_CPILE */ { "rpile", 5 }, /* EQNPILE_RPILE */ { "lpile", 5 }, /* EQNPILE_LPILE */ + { "col", 3 }, /* EQNPILE_COL */ { "ccol", 4 }, /* EQNPILE_CCOL */ { "rcol", 4 }, /* EQNPILE_RCOL */ { "lcol", 4 }, /* EQNPILE_LCOL */ diff --git a/mandoc.h b/mandoc.h index 7519fa08..44b259db 100644 --- a/mandoc.h +++ b/mandoc.h @@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.94 2011/07/23 18:41:18 kristaps Exp $ */ +/* $Id: mandoc.h,v 1.95 2011/07/23 18:44:42 kristaps Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * @@ -322,9 +322,11 @@ enum eqn_post { enum eqn_pilet { EQNPILE_NONE = 0, + EQNPILE_PILE, EQNPILE_CPILE, EQNPILE_RPILE, EQNPILE_LPILE, + EQNPILE_COL, EQNPILE_CCOL, EQNPILE_RCOL, EQNPILE_LCOL, -- cgit v1.2.3