Re: Why can't we use <stdint.h> definitions?
[email protected] ("Paul \"LeoNerd\" Evans")
| Newsgroups | perl.perl5.porters |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 4 Dec 2025 19:05:55 -0700 Karl Williamson <[email protected]> wrote: > Advice in perlhacktips says: > > Use C<PERL_INT_FAST8_T> etc as defined in F<handy.h> > > But why is that? 'int_fast8_t' is easier to read and occupies less > space, which is why I would prefer to use it. > > Are there really C99 compilers that don't comply with recognizing > these? I expect it's probably all just historic baggage, and predates our "use C99" change in 5.36. Certainly at this point we make use of C99 types such as `size_t` all over the place, so I would expect we can use others, such as `int_fast8_t` as well. -- Paul "LeoNerd" Evans [email protected] http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS