groff
[Top][All Lists]
Advanced

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

Re: [Groff] .sv request


From: Ralph Corderoy
Subject: Re: [Groff] .sv request
Date: Fri, 23 Mar 2001 18:21:53 +0000

Hi Werner,

> Looking into gtroff's code, I believe that the code has a bug, namely
> not providing a default value of 1v if called without argument.
>
> Does Unix troff really behaves as documented regarding a default
> value?

Yes, I think it does have this default.

    file n5.c

    1037 void casesv(void)
    1038 {
    1039         int i;
    1040
    1041         skip();
    1042         if ((i = vnumb((int *)0)) < 0)
    1043                 return;
    1044         if (nonumb)
    1045                 i = 1;
    1046         sv += i;
    1047         caseos();
    1048 }
    1049
    1050
    1051 void caseos(void)
    1052 {
    1053         int savlss;
    1054
    1055         if (sv <= findt1()) {
    1056                 savlss = lss;
    1057                 lss = sv;
    1058                 newline(0);
    1059                 lss = savlss;
    1060                 sv = 0;
    1061         }
    1062 }


Ralph.


reply via email to

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