[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-dtrace-discuss
Subject:    Re: [dtrace-discuss] Question on dtrace -C behavior
From:       Angelo Rajadurai <Angelo.Rajadurai () Sun ! COM>
Date:       2009-05-01 8:53:26
Message-ID: C85B92BB-B762-4C72-9368-7603FB1AF652 () sun ! com
[Download RAW message or body]

Thanks Ryan,

This also does not explain why changing nfds_t to xx_t also has no  
problem.

typedef unsigned long nfds_t; // error
typedef unsigned long xx_t; // works

-Angelo


On May 1, 2009, at 4:26 AM, Ryan Johnson wrote:

> After a bit of playing around it appears that dtrace doesn't  
> implicitly expand 'long' to its real type (which is 'long int') and  
> the missing 'int' triggers the error. For example:
>
> typedef unsigned u; // error
> typedef unsigned int ui; // works
>
> typedef unsigned long; // error
> typedef unsigned long int uli; // works
>
> I have no clue why the problem wouldn't affect header files, though.
>
> Ryan
>
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss@opensolaris.org

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic