Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #105285
| Path | csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Keith Thompson <kst-u@mib.org> |
| Newsgroups | comp.lang.c |
| Subject | Re: Double-underline-itis |
| Date | Wed, 01 Mar 2017 09:30:23 -0800 |
| Organization | None to speak of |
| Lines | 24 |
| Message-ID | <lnd1e0dhw0.fsf@kst-u.example.com> (permalink) |
| References | <o951ti$ch6$1@dont-email.me> <87tw7doktz.fsf@bsb.me.uk> <o96c5h$l84$1@dont-email.me> <878topnpqm.fsf@bsb.me.uk> <o96gp9$d8n$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Injection-Info | mx02.eternal-september.org; posting-host="40f2111bd31821bfebd41309549fe646"; logging-data="21586"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FrsJHBBC6W+L8p95On+1Y" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
| Cancel-Lock | sha1:oOk/bIOszTb16Gt8S5bIENSytM4= sha1:eFPuwzPnFmdr0fxjMMEyMB35NxI= |
| Xref | csiph.com comp.lang.c:105285 |
Show key headers only | View raw
BartC <bc@freeuk.com> writes:
[...]
> I've just come across __signed__! How many C systems don't support 'signed'?
>
> typedef __signed__ char __s8;
> typedef unsigned char __u8;
[...]
The "signed" keyword and the signed char type were, IIRC, introduced
by ANSI C in 1989. A header designed to work with both pre-ANSI
and ANSI C would have to have some way of dealing with that. And
since the header still works even with C11 (as long as __signed__
is defined properly), there's not much motivation to fix it --
unless you wrongly assume that headers are intended as end user
documentation.
The use of __s8 and __u8, rather than the standard int8_t and
uint8_t, already implies that this is from an old legacy header.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Double-underline-itis BartC <bc@freeuk.com> - 2017-02-28 23:44 +0000
Re: Double-underline-itis supercat@casperkitty.com - 2017-02-28 15:54 -0800
Re: Double-underline-itis Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-03-01 01:19 +0000
Re: Double-underline-itis David Brown <david.brown@hesbynett.no> - 2017-03-01 09:11 +0100
Re: Double-underline-itis BartC <bc@freeuk.com> - 2017-03-01 11:45 +0000
Re: Double-underline-itis Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-03-01 12:30 +0000
Re: Double-underline-itis BartC <bc@freeuk.com> - 2017-03-01 13:04 +0000
Re: Double-underline-itis Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-03-01 15:29 +0000
Re: Double-underline-itis gazelle@shell.xmission.com (Kenny McCormack) - 2017-03-01 15:47 +0000
Re: Double-underline-itis Keith Thompson <kst-u@mib.org> - 2017-03-01 09:30 -0800
Re: Double-underline-itis supercat@casperkitty.com - 2017-03-01 10:14 -0800
Re: Double-underline-itis Tim Rentsch <txr@alumni.caltech.edu> - 2017-04-16 18:45 -0700
csiph-web