Liste des Groupes | Revenir à cl c |
On Thu, 20 Mar 2025 14:00:29 +0000stdint.h is part of a C compiler; it's nothing to do with Windows. My remark was about having to write '#include <stdio.h>' on each one of the 100 modules of your project if you want tto use basic language data types.
bart <bc@freeuk.com> wibbled:On 20/03/2025 13:36, Scott Lurndal wrote:I've never found them awkward to work with and every *nix I've ever developedUsing the defined width types is far better (e.g. uint64_t);>
even if the standard allows the type to not exist on a particular
implementation. No useful implementation would fail to define
uint64_t in these modern times.
The point was made earlier on that int64_t types are awkward to work
with; they need that stdint.h header to even exist, and they need those
ugly macros in inttypes.h to print out their values.
on had stdint.h. If Windows doesn't thats Window's problem.
They're popular everywhere:This is why it popular to just do:Popular maybe in WindowsWorld. Why as a unix dev would I do that when
>
typedef long long int i64;
standard typedefs already exist for this exact purpose?
stdint.h et al are just ungainly bolt-ons, not fully supported by the
language
Whats that supposed to mean? The core language itself supports very little.Literal suffixes such as -L and -ULL are in the core language, and each 'L' refers to 'long'.
Do you not use libraries at all?
I didn't say they're macros. I said the types are defined on top the regular types, and macros are needed to print their values.So somebody eschewing those ugly macros and using "%ld" to print anWhat makes you think they're macros?
MacOS:
stdint.h
_types/_uint64_t.h
typedef unsigned long long uint64_t;
Les messages affichés proviennent d'usenet.