[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-sparse
Subject: Re: [PATCH v2 03/12] arch: keep BSD & Darwin specifics with i386/x86-64 specifics
From: Luc Van Oostenryck <luc.vanoostenryck () gmail ! com>
Date: 2019-11-27 23:43:57
Message-ID: 20191127234357.nniyeyp2izx24xnr () ltop ! local
[Download RAW message or body]
On Wed, Nov 27, 2019 at 04:01:16PM +0000, Ramsay Jones wrote:
> On 27/11/2019 02:06, Luc Van Oostenryck wrote:
> > Without more testing, the specific types for wint_t & int64_t
> > on FreeBSD & Darwin are only valid for i386/x86-64.
> >
> > Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
> > ---
> > target.c | 14 +++++++-------
> > 1 file changed, 7 insertions(+), 7 deletions(-)
> >
> > diff --git a/target.c b/target.c
> > index acafbd929..647817a22 100644
> > --- a/target.c
> > +++ b/target.c
> > @@ -83,6 +83,13 @@ void init_target(void)
> > wchar_ctype = &long_ctype;
> > /* fall through */
> > case MACH_X86_64:
> > +#if defined(__APPLE__)
> > + int64_ctype = &llong_ctype;
> > + uint64_ctype = &ullong_ctype;
> > +#endif
> > +#if defined(__FreeBSD__) || defined(__APPLE__)
> > + wint_ctype = &int_ctype;
> > +#endif
>
> Heh, OK, question answered! ;-)
Anyway, I would like to move all this in some arch-specific
files. Not for soon, though.
Best regards,
-- Luc
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic