This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Re: casts to a type other than an integral or enumeration
- From: <fnf at intrinsity dot com>
- To: jifl at eCosCentric dot com (Jonathan Larmour)
- Cc: schwab at suse dot de (Andreas Schwab), fnf at intrinsity dot com,gcc-bugs at gcc dot gnu dot org, ecos-discuss at sources dot redhat dot com
- Date: Wed, 12 Feb 2003 18:54:02 -0600 (CST)
- Subject: Re: [ECOS] Re: casts to a type other than an integral or enumeration
- Reply-to: fnf at intrinsity dot com (Fred Fish)
> > |> 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
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss