From: Philippe Elie <phil.el@wanadoo.fr>
To: Bernardo Innocenti <bernie@develer.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: C99 types VS Linus types
Date: Sun, 06 Jul 2003 12:23:13 +0000 [thread overview]
Message-ID: <3F0814B1.1000401@wanadoo.fr> (raw)
In-Reply-To: 200307060703.58533.bernie@develer.com
Bernardo Innocenti wrote:
> Hello,
hi,
> Since C99, the C language has acquired a standard set of machine
> independent types that can be used for machine independent
> fixed-width declarations.
>
> Getting rid of all non-ISO types from kernel code could be a
> desiderable long-term goal. Besides the inexplicable goodness
> of standards compliance, my favourite argument is that not
> depending on custom definitions makes copying code from/to
> other projects a little easier.
alpha user space .h define uint64_t as unsigned long,
include/asm-alpha/types.h defines it as unsigned long long.
Using a different definition (if it's possible) will be
confusing. Using the same definition as user space means
than code like:
uint64 t u;
printk("%lu", u);
will not compile on alpha. This problem is solved in C99
by using PRI_xxx format specifier macro, I'm not a great
fan of this idea.
> Ok, "int32_t" is a little more typing than "s32_t", but in
> exchange you get it syntax hilighted in vim like built-in
> types ;-)
surely vim allow to define your own set of type ?
regards,
Philippe Elie
next prev parent reply other threads:[~2003-07-06 9:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-06 5:03 C99 types VS Linus types Bernardo Innocenti
2003-07-06 12:23 ` Philippe Elie [this message]
2003-07-06 17:37 ` SPAM[RBL] " Bernardo Innocenti
2003-07-06 18:08 ` Vojtech Pavlik
2003-07-06 23:08 ` Jamie Lokier
-- strict thread matches above, loose matches on Subject: below --
2003-07-06 22:18 Albert Cahalan
2003-07-07 1:59 ` Matthias Andree
2003-07-07 12:01 Albert Cahalan
2003-07-07 12:22 ` Matthias Andree
2003-07-07 12:24 ` Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F0814B1.1000401@wanadoo.fr \
--to=phil.el@wanadoo.fr \
--cc=bernie@develer.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox