On Mon, Nov 19, 2007 at 08:48:26PM -0800, Rich Morin wrote:
> When I run "cpp -C", the evil spaces do not appear. However,
> there's no telling what options dtrace is sending to cpp. I
> looked at the dtrace man page on Leopard, and it says:
>
> -C Run the C preprocessor cpp over D programs before compiling
> them. Options can be passed to the C preprocessor using the -D,
> -U, -I, and -H options. The degree of C standard conformance
> can be selected using the -X option. Refer to the description
> of the -X option for a description of the set of tokens defined
> by the D compiler when invoking the C preprocessor.
>
> Sadly, there _is_ no description of a -X option in either the cpp or
> dtrace man page. Sigh.
>
> -r
There is on Solaris in dtrace(1M):
-X a | c | s | t
Specify the degree of conformance to the ISO C standard
that should be selected when invoking cpp(1) (enabled
using the -C option). The -X option argument affects the
value and presence of the __STDC__ macro depending upon
the value of the argument letter.
The -X option supports the following arguments:
...
but maybe Apple removed this part. The -X option would also
require modifications for gcc cpp. We'll need someone from
Apple to help us figure out what they did here. In the
meantime avoid using -C and expand your script first.
-Mike
--
Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/
_______________________________________________
dtrace-discuss mailing list
[email protected]