Re: [PATCH] Make large enum constants unsigned

Stefan Kristiansson <[email protected]> Thu, 22 May 2014 17:10:03 +0300
Newsgroups gmane.comp.tools.cgen.devel
Message-ID <CADzBsGN-T1dMgp1DpBb6ysBW+wQyLjY6-7GLuCgKkcUUJTkmtw@mail.gmail.com>
On Thu, May 22, 2014 at 4:33 PM, Pierre Muller
<[email protected]> wrote:
>   Couldn't we support 64-bit constants already,
> by adding
> +                                                      (if (> (cadr e)
> +                                                             #x100000000)
> +                                                          "LL" ""))
> Right after the conditional "U" postfix?
>
> This way, the pre C-99 standard would only be violated when
> it is really required anyhow, no?
>

That would solve the standard violation problem, but the fact that
enums are limited to the size of an int still remains, so it wouldn't
help much.

Stefan