delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/06/06/03:45:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP v2.05: some thoughts
Date: Sat, 6 Jun 2015 07:34:11 +0000 (UTC)
Organization: Aioe.org NNTP Server
Lines: 47
Message-ID: <mku7ph$u9s$1@speranza.aioe.org>
References: <55673F0B DOT 1090103 AT iki DOT fi> <83twuwwshg DOT fsf AT gnu DOT org> <55675040 DOT 9030008 AT iki DOT fi> <556F6E49 DOT 8010006 AT gmx DOT de> <556FCCDF DOT 7080005 AT iki DOT fi> <83bngvr0ef DOT fsf AT gnu DOT org> <557078B1 DOT 9040004 AT iki DOT fi> <201506041613 DOT t54GDT8m014488 AT delorie DOT com> <5570B1F7 DOT 1070509 AT iki DOT fi> <83pp5aprqw DOT fsf AT gnu DOT org> <mks4nl$1o8$1 AT speranza DOT aioe DOT org> <834mmmp7f0 DOT fsf AT gnu DOT org>
NNTP-Posting-Host: WLZdEp4S2PR09rkVF8ILdg.user.speranza.aioe.org
X-Complaints-To: abuse AT aioe DOT org
User-Agent: tin/2.1.1-20120623 ("Mulindry") (UNIX) (Linux/3.2.0-4-amd64 (x86_64))
X-Notice: Filtered by postfilter v. 0.8.2
Bytes: 2833
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Eli Zaretskii (eliz AT gnu DOT org)" <djgpp AT delorie DOT com> wrote:
> > From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
> > Date: Fri, 5 Jun 2015 12:29:43 +0000 (UTC)
> > 
> > But, IIRC, C99 (or even perhaps C89) reserved any symbol starting with E.

> Where do you see such language in C99?  I don't see it, and neither do
> I see it in C11.  But maybe I'm missing something, it's not like I've
> read the entire document top to bottom.

In C99 (which is what I have):

7.1.3 Reserved identifiers, paragraph 1, third ---:
"Each macro in the following subclauses (including future library
directions) is reserved for use as specified if any of the associated
headers is included, unless explicitly stated otherwise (see 7.1.4)."

(I don't see anything in 7.1.4 about reserved identifiers. It's about
calling library functions with illegal values, having library
functions as macros as well as functions, and the possibility to
declare library functions yourself.)

7.26 Future library directions

7.26.3 Errors <errno.h>
"Macros the begin with E and a digit or E and an uppercase letter may
be added to the declarations in the <errno.h> header."


Thus anything "E[0-9A-Z]*" is reserved if errno.h is included.


In addition there's:
7.5 Errors <errno.h>, paragraph 4:
"Additional macro definitions, beginning with E and a digit or E and
an uppercase, may also be specified by the implementation."

So even if 7.1.3 and 7.26.3 didn't exist (or you object to the fact
the some of the text is in parentheses), we are allowed to add our own
"E[0-9A-Z]*" if we wanted.

Because the possibily exists, they are "reserved" (you can't count on
that there is _not_ a certain "E[0-9A-Z]*").


-- 
MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019