bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: __UINT_LEAST8_MAX__ and HP-UX 11.23/IA


From: Albert Chin
Subject: Re: __UINT_LEAST8_MAX__ and HP-UX 11.23/IA
Date: Wed, 20 Jan 2021 17:50:04 -0600
User-agent: NeoMutt/20171215

On Wed, Jan 20, 2021 at 12:25:09PM -0600, Albert Chin wrote:
> In data/skeletons/c.m4 from bison-3.7.4, we have:
>   #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
>   typedef __UINT_LEAST8_TYPE__ yytype_uint8;
>   #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
>          && UINT_LEAST8_MAX <= INT_MAX)
>   typedef uint_least8_t yytype_uint8;
>   #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
>   typedef unsigned char yytype_uint8;
>   #else
>   typedef short yytype_uint8;
>   #endif
> 
> Unfortunately, on HP-UX 11.23/IA, UINT_LEAST8_MAX evaluates to
> ((unsigned char)(255)) causing a problem with:
>   #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
>          && UINT_LEAST8_MAX <= INT_MAX)

This is also an issue for UINT_LEAST16_MAX.

-- 
albert chin (china@thewrittenword.com)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]