groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Groff] Max of 9 macro parameters.


From: Eddie Maddox
Subject: RE: [Groff] Max of 9 macro parameters.
Date: Tue, 25 Jan 2000 18:50:40 -0500 (EST)

On Tue, 25 Jan 2000 address@hidden wrote:

> I'm pretty sure this is not a bug. Certainly your source code looks
> wrong.
> 
> First, groff (more precisely gtroff) can definitely take unlimited
> numbers of macros.
> 
> Second, to refer to a macro argument whose number nn or nnn needs more
> than 1 digit (i.e. other than \\$0 ... \\$9) you should use \\S(nn of
> \\$[nnn]. Your html source probably needs this.

I corrected my test source code with \\$[10] \\$[11] \\$[12] etc.

All works fine now. And \\$[xx] where xx > # of parameters passed
produces no output. Good.

Thanks a lot, Ted.

> Thirdly, you invoke .bug1 with 20 arguments. The definition of .bug1
> refers to \\$0 ... \\$9 in the first line, \\$10 in the second line
> and then \\$23 and so on; you don't have a \\$23 in tthe call!
              ^^                ^^^^^^^^^^

Right. Should'ah had more 1x examples for <= 20 parameters passed.
Wanted a few for over, though, too, to see what happens.

------------------
Eddie Maddox
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]