diff options
author | wl <wl> | 2006-12-11 16:12:15 +0000 |
---|---|---|
committer | wl <wl> | 2006-12-11 16:12:15 +0000 |
commit | 9c62ea4ff51d7bf4945de978ac19ff56f9a69503 (patch) | |
tree | 01c6dc8fc747e12b87311026efae32d3624da667 /doc/pic.ms | |
parent | dc3adb09736b2999e76bc8eb1e97e7ed3617be5c (diff) | |
download | groff-9c62ea4ff51d7bf4945de978ac19ff56f9a69503.tar.gz |
Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
hosts).
* src/preproc/pic/lex.cpp (ARG1): Redefine. Update all users.
(MAX_ARG): New macro. Use it everywhere to replace hard-coded
limit of 9 arguments.
(process_body): Handle argument numbers with more than a single
digit.
(interpolate_macro_with_args): Protect against exceeding number of
arguments.
* NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
Diffstat (limited to 'doc/pic.ms')
-rw-r--r-- | doc/pic.ms | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -31,7 +31,7 @@ .\" Eric S. Raymond <esr@thyrsus.com> in August 1995. It has been put .\" under the GPL in March 2006. .\" -.\" $Id: pic.ms,v 1.33 2006/03/21 07:57:57 wl Exp $ +.\" $Id: pic.ms,v 1.34 2006/12/11 16:12:15 wl Exp $ . . .\" Set a proper TeX and LaTeX @@ -1576,7 +1576,8 @@ function that only takes %, %e, %f, and %g format strings. .NH 1 Macros .PP -You can define macros in \fBpic\fP. This is useful for diagrams with +You can define macros in \fBpic\fP, with up to 32 arguments (up to 16 +on EBCDIC platforms). This is useful for diagrams with repetitive parts. In conjunction with the scope rules for block composites, it effectively gives you the ability to write functions. .PP |