From owner-man-jp-reviewer@jp.FreeBSD.org Fri Aug 30 14:51:04 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g7U5p4a42212;
	Fri, 30 Aug 2002 14:51:04 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id g7U5p3342207
	for <man-jp-reviewer@jp.FreeBSD.org>; Fri, 30 Aug 2002 14:51:03 +0900 (JST)
	(envelope-from horikawa@jp.FreeBSD.org)
Received: from localhost ([12.252.70.36]) by sccrmhc03.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020830055056.YWPF25638.sccrmhc03.attbi.com@localhost>;
          Fri, 30 Aug 2002 05:50:56 +0000
Message-Id: <20020829.235054.74751395.horikawa@attbi.com>
To: man-jp-reviewer@jp.FreeBSD.org, ohsawa@ccn.aitai.ne.jp
From: Kazuo Horikawa <horikawa@jp.FreeBSD.org>
In-Reply-To: <3D6BCE70.D7AE3BF@ccn.aitai.ne.jp>
References: <3D6BCE70.D7AE3BF@ccn.aitai.ne.jp>
X-Mailer: Mew version 2.2 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Reply-To: man-jp-reviewer@jp.FreeBSD.org
Precedence: list
Date: Thu, 29 Aug 2002 23:50:54 -0600
X-Sequence: man-jp-reviewer 4234
Subject: [man-jp-reviewer 4234] Re: unifdef.1 (V 1.4.2.6)
Errors-To: owner-man-jp-reviewer@jp.FreeBSD.org
Sender: owner-man-jp-reviewer@jp.FreeBSD.org
X-Originator: horikawa@jp.FreeBSD.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+020829

$BKY@n$G$9!#(B

OHSAWA Chitoshi <ohsawa@ccn.aitai.ne.jp> wrote:
> $BBg_7!w4tIl(B Give up!!? $B$G$9!#(B
> 
> $B$9$C$+$j!"CY$/$J$C$F$7$^$$$^$7$?$,!"(Bunifdef.1 $B$G$9!#(B
> $B$3$l0J>eJz$($F$$$F$b$h$/$J$k5$G[$,$J$$$N$GDs=P$7$^$9!#(B
$B$*$D$+$l$5$^$G$9!#(B

> $B5?LdE@(B :
> $BL>>N(B:$B!V%W%j%W%m%;%C%5>r7o9T$r<h$j=|$/!W(B
> $B$G$h$$$N$G$7$g$&$+(B?
$BNI$$$H9M$($^$9!#(B

> directive : $B!V;XNa!W$HLu$7$^$7$?$,:#0l$D(B...
> # $B%3%^%s%I!"L?Na!"!D$I$l$b:#$R$H$D$G$$$C$=$N$3$H(B
> #$B!V%G%#%l%/%F%#%V!W$H$+(B
$B;XNa$N$^$^$G$bNI$$$H;W$$$^$9$,!"(Bdoc/ja_JP.eucJP/man $B2<$G$O(B
$B!V%G%#%l%/%F%#%V!W$H$5$l$F$$$k$3$H$,B?$$$h$&$G$9!#(B

$ grep $B;XNa(B */*
man1/c89.1:$B%G%#%l%/%F%#%V(B($BA0=hM};XNa(B)$B$G;XDj$7$?$+$N$h$&$KL>A0$rDj5A$7$^$9!#(B
man1/gcc.1:\&\|' $B%G%#%l%/%F%#%V(B($B;XNa(B)$B$,(B GNU C++ $B$K$h$C$F%5%]!<%H$5$l$F$$$^$9!#$3$l$O!"(B1
man4/wd.4:$B%Q%i%a!<%?$r;H$C$F!"%I%i%$%P$K%R%s%H$d;XNa$rEA$($k$3$H$,$G$-$^$9!#(B
man5/stab.5:.\" WORD: directive	$B%G%#%l%/%F%#%V(B($BL?Na!";XNa$NN`(B)
$ grep $B%G%#%l%/%F%#%V(B */* | wc
      88     146    5486
$ 

> symbol : $B$=$N$^$^!V%7%s%\%k!W$HLu$7$^$7$?$,!"(B
> # $BIaDL!V%^%/%m!W$H8F$s$G$$$?$h$&$J5$$,$7$^$9!#5$$N$;$$$+(B
symbol $B$O!V%7%s%\%k!W$GNI$$$G$7$g$&!#(B
$B85Lu$N(B unifdef.1 $B$G$b!V%7%s%\%k!W$G$9$7!#(B

> .Ic #ifdef Ns s
> $B$N:G8e$N(B s $B$r$H$j$^$7$?!#J#?t7A$K$9$k$?$a$N(B s $B$@$H;W$&$N$G$9$,!"(B
> $B<h$j=|$$$F@07A$9$k$H5M$^$C$?46$8$K$J$j$^$7$?!#(B
Ns $B$b:o=|$7$F$_$F$/$@$5$$!#(B

mdoc(7) $B$K$h$k$H(B

   $B6uGr$J$7%^%/%m(B
     `.Ns' $B%^%/%m$O!"8=:_$N0LCV$H%^%/%m$NBh(B 1 $B%Q%i%a!<%?$H$N4V$K6uGr$rA^F~$9$k(B
     $B$N$rM^;_$7$^$9!#Nc$($P!"%U%i%0$H0z?t$N4V$K6uGr$r4^$^$J$$8E$$%9%?%$%k$N0z(B
     $B?t%j%9%H$r;H$&>l9g$KJXMx$G$9(B:

           $B;H$$J}(B: ... <$B0z?t(B> Ns [<$B0z?t(B>] ...
                   .Ns <$B0z?t(B> ...

                    .Op Fl I Ns Ar directory  [-Idirectory]

     $BCm(B: `.Ns' $B%^%/%m$OB>$N%^%/%mL>$,B3$+$J$1$l$P!"%9%Z!<%9$r=|5n$7$?$"$H$K(B
     `.No' $B%^%/%m$r>o$K5/F0$7$^$9!#%j%/%(%9%H$H$7$F;HMQ$5$l$k>l9g(B ($B$D$^$j!"(B `
     $B;H$$J}(B' $B$N9T$G$N(B 2 $BHVL\$N7A<0$G$9(B)$B!"(B `.Ns' $B%^%/%m$O(B `.No' $B$HF10l$G$9!#(B


> $B%U%C%?9T$K(B
> FreeBSD 4.5                     April 26, 2002                     FreeBSD 4.5
> $B$HI=<($5$l$^$9!#(B(~_~?)
> $B1Q8lHG(B man $B$dB>$N(B jman page $B$@$H(B "FreeBSD 4.6" $B$G$9!#(B
$B$H$j$"$($:5$$K$7$J$/$FNI$$$N$G$O$J$$$G$7$g$&$+!#$"$H$G8+$F$_$^$9!#(B

> $B$=$NB>!"Lu$,2x$7$=$&$J$H$3$m$K$O%3%a%s%H$N7A$GF~$l$F$"$j$^$9!#(B
> # $B$9$3$7!"F|K\8l$bJY6/$7D>$5$J$$$H(B jp-man $B$N$*<jEA$$$b$G$-$J$$$G$9!#(B(~_~;)
$B!V(Bexpression$B!W$O!"$3$N%^%K%e%"%kCf$G$O!"$I$3$G$b!V<0!W$H=q$$$F$7$^$C$F(B
$BNI$$$G$7$g$&!#(B

and it understands only the commonly-used subset of the expression
syntax for #if and #elif lines.

> +$B9T$NI=$o$9J8K!$N$h$/;H$o$l$k%5%V%;%C%H$7$+M}2r$7$^$;$s!#(B
   $B9T$N<0J8K!$NCf$G$b$h$/;H$o$l$k%5%V%;%C%H$7$+M}2r$7$^$;$s!#(B

> -directives are only processed
> -if the symbol is specified on the command line,
> -otherwise they are also passed through unchanged.
> +$B;XNa$O%7%s%\%k$,%3%^%s%I%i%$%s$GDj5A$5$l$?>l9g$@$1(B
                                   $B;XDj(B
> +$B=hM}$5$l$^$9!#$=$NB>$N>l9g$K$OJQ99$5$l$:$K!"AGDL$j$5$;$^$9!#(B

-U $B$OL$Dj5A$K$9$k;XDj$@$+$i!"(Bspecified $B$r!VDj5A!W$H$7$F$7$^$&$H8mLu!#(B


> +$B$=$l$O(B controlling symbols $B$H(B $B$=$l$i$NDj5A$N(B
> +$B$9$Y$F$N%j%9%H$rF@$k$?$a$K(B
>  .Nm Fl s
> -and
> +$B$H(B
>  .Nm cpp Fl dM
> -to get lists of all the controlling symbols
> -and their definitions (or lack thereof),
> +$B$r;HMQ$7$^$9!#(B

$B$9$Y$F$N@)8f%7%s%\%k$H$=$NDj5A(B ($B$^$?$OL$Dj5A(B) $B$N%j%9%H$rF@$k$?$a$K!"(B
.Nm Fl s
$B$H(B
.Nm cpp Fl dM
$B$r;HMQ$7$^$9!#(B

> +.\" (or lack thereof) $B$,Lu$;$J$$(B?
thereof = of that $B$i$7$$$N$G(B
lack thereof = lack of that = lack of definitions = $BL$Dj5A(B
$B$H$$$&$3$H$G$7$g$&!#(B

>  .It Fl c
> -If the
>  .Fl c
> -flag is specified,
> -then the operation of
> +$B%U%i%0$,;XDj$5$l$?>l9g$K$O!"(B
>  .Nm
> -is complemented,
> -i.e., the lines that would have been removed or blanked
> -are retained and vice versa.
> +$B$NF0:n$O5U$K$5$l$^$9!#(B
> +$B$?$H$($P!":o=|$5$l$k$+6uGr$K$5$l$k9T$r;D$7$^$9!#(B
   $B$9$J$o$A(B

> +.\" ???and vice versa $B$,Lu$;$^$;$s(B?

$B$9$J$o$A!":o=|$^$?$O6uGr$K$5$l$k$O$:$@$C$?9T$r;D$7!"(B
$B;D$9$O$:$@$C$?9T$r:o=|$^$O$?6uGr$K$7$^$9!#(B

i.e. $B$H(B vice versa $B$K$D$$$F$O!"<-=q$r$R$-$^$7$g$&!#(B

$B8&5f<R%8!<%K%"%91QOB!&OB1Q<-E5$G$O(B:

i.e.$B"x!L%i%F%s8l(Bid est$B$NN,!M!T@5<0!U$9$J$o$A(B,$B8@$$49$($l$P(B(that is (to
say)).

vi$B!&(Bce ver$B!&(Bsa$B!L%i%F%s!M!ZI{![(B[$BDLNc(Band $B!A(B] $B5U$b$^$?F1MM!(5U$K(B,$BH?BP$K(B
($B!ZN,![(Bv.v.)$B!B(BWhen he wants to go out, she wants to be home, and 
$B!A(B. $BH`$,=P$+$1$?$$;~$K$OH`=w$O2H$K$$$?$$$,(B,$B5U$KH`$,2H$K$$$?$$;~$K$OH`(B
$B=w$O=P$+$1$?$,$k(B.

$B$^$?!"85Lu$N(B -c $B$b8+$^$7$g$&!#(B

     -c      unifdef $B$N8z2L$r5UE>$7$^$9!#$9$J$o$A!"DL>o:o=|$5$l$k$Y$-9T$r;D(B
             $B$7!";D$5$l$k$Y$-9T$r:o=|$7$^$9!#(B

>  .Pp
>  .It Fl s
> -Instead of processing the input file as usual,
> -this option causes
> +$BDL>o$NF~NO%U%!%$%k$r=hM}$9$kBe$o$C$F!"(B
> +$B$3$N%*%W%7%g%s$O(B
>  .Nm
> -to produce a list of symbols that appear in expressions
> -that
> +$B$K(B
>  .Nm
> -understands.
> +$B$,M}2r$9$kI=8=$K8=$l$?%7%s%\%k$N%j%9%H$r@8@.$5$;$^$9!#(B
             $B<0(B

> +$B$3$N%*%W%7%g%s$O(B
>  .Nm
> -for compatibility with
> +$B$K$O(B
>  .Xr cpp 1
> -and to simplify the implementation of
> -.Nm unifdefall .
> +$B$H$N8_49@-$H(B
> +.Nm unifdefall
> +$B$N<BAu$r4JC1$K$9$k$?$a$KL5;k$5$l$^$9!#(B

.Xr cpp 1
$B$H$N8_49@-$H(B
.Nm unifdefall
$B$N<BAu$r4JC1$K$9$k$?$a$K!"(B
.Nm
$B$K$O$3$N%*%W%7%g%s$OL5;k$5$l$^$9!#(B

$B$d(B

.Xr cpp 1
$B$H$N8_49@-$H(B
.Nm unifdefall
$B$N<BAu$r4JC1$K$9$k$?$a$K!"(B
.Nm
$B$O$3$N%*%W%7%g%s$rL5;k$7$^$9!#(B

$B$H$7$?J}$,FI$_0W$$$+$b$7$l$J$$$H;W$$$^$7$?!#(B
--
$BKY@nOBM:(B
