On Thu, Jan 31, 2008 at 03:07:20AM -0800, Paul van den Bogaard wrote:
> results in a header file that has the proper macro defines. However
> the double underscores are changed into single underscores. This while
> the convention is to replace a double underscore with a hyphen in the
> final probe name.
> 
> Is this an oversight?  Or intentionally? 

This is intentional. I went back and forth on this a bit when implementing
the header file generation in dtrace(1M) and decided that the double
underscores looked stupid in the macros, and that I preferred non-stupid
looking code to the potential for conflicts (given that __ and _ would both
map to _) and confusion.

> I would like to use those reasonably named macro's in my source code,
> however since using the hyphen lots of time to create a distinction and
> enhance readability I really do not like this behaviour of exchanging
> double underscores with a single one.

It was a conscious decision. Apologies for the inconvenience, but it would
be tricky to change at this point.

Adam

-- 
Adam Leventhal, Fishworks                        http://blogs.sun.com/ahl
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to