This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ECOS] Re: casts to a type other than an integral or enumeration


> > |>       case (int) SIG_DFL:
>
> Assuming I'm thinking of the right bit of code, Fred was paraphrasing the 
> code. The "int" is actually an eCos typedef set by the hardware 
> abstraction layer so _will_ be correct for the hardware.

The problem is imbedded in SIG_DFL, the int cast above is simply to
get the older compiler to accept my test example.

SIG_DFL is typically something like:

	#define SIG_DFL  ((__sighandler_t)0)

and __sighandler_t is:

	typedef void (*__sighandler_t)(int);

-Fred


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]