Email List: Xaustin-review-lX
[All Lists]

RE: Defect in XCU m4

To: <yyyyyyy@xxxxxxx>
Subject: RE: Defect in XCU m4
From: "Donn Terry" <yyyyyy@xxxxxxxxxxxxx>
Date: Wed, 17 Apr 2002 10:45:28 -0700
Cc: <yyyyyyyyyyyyyyy@xxxxxxxxxxxxx>
Thread-index: AcHmF3oikg4aT0E3Rj6IuBk5gIt22gAH/AvA
Thread-topic: Defect in XCU m4
Joanna: thanks for this much improved example.  I'd always been unhappy
with the existing one (which was more about make than m4) but I don't
(and didn't) know enough m4 to be able to write a better example (and
not have it be misleading, anyway).

Donn

-----Original Message-----
From: Joanna Farley [mailto:yyyyyyyyyyyyy@xxxxxxx] 
Sent: Wednesday, April 17, 2002 6:55 AM
To: yyyyyyy@xxxxxxx
Cc: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Re: Defect in XCU m4




There's a typo in the defect report. The file m4input should be m4src.

Joanna


yyyyyyy@xxxxxxx wrote:

> 
> If the file \fBm4input\fP contains the lines:
>         The value of `VER' is "VER".
>         ifdef(`VER', ``VER'' is defined to be VER., VER is not
defined.)
>         ifelse(VER, 1, ``VER'' is `VER'.)
>         ifelse(VER, 2, ``VER'' is `VER'., ``VER'' is not 2.)
>         end
> then the command:
>         m4 m4src
> or the command:
>         m4 -U VER m4src
> produces the output:
>         The value of VER is "VER".
>         VER is not defined.
> 
>         VER is not 2.
>         end
> 
> The commnd:
>         m4 -D VER m4src
> produces the output:
>         The value of VER is "".
>         VER is defined to be .
> 
>         VER is not 2.
>         end
> 
> The command:
>         m4 -D VER=1 m4src
> produces the output:
>         The value of VER is "1".
>         VER is defined to be 1.
>         VER is 1.
>         VER is not 2.
>         end
> 
> The command:
>         m4 -D VER=2 m4src
> produces the output:
>         The value of VER is "2".
>         VER is defined to be 2.
> 
>         VER is 2.
>         end

<Prev in Thread] Current Thread [Next in Thread>