delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/19/10:16:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Dave Korn" <dk AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: [OT] RE: incompatible types in header files
Date: Tue, 19 Oct 2004 15:15:24 +0100
MIME-Version: 1.0
In-Reply-To: <NUTMEGXsL1c00goZolm00000052@NUTMEG.CAM.ARTIMI.COM>
Message-ID: <NUTMEGYCT4aJ6pkNzPZ00000059@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 19 Oct 2004 14:15:24.0343 (UTC) FILETIME=[13423C70:01C4B5E6]

> -----Original Message-----
> From: cygwin-owner On Behalf Of Dave Korn
> Sent: 19 October 2004 14:55

  Sorry, there was one more thing I should have pointed out:

> > -----Original Message-----
> > From: cygwin-owner On Behalf Of Siegmar Gross
> > Sent: 19 October 2004 14:44

> > /usr/include/sys/features.h suggests to define "__rtems__" 


  You should *never* define *anything* that begins with two underscores,
unless you are writing a compiler or system library.  That's not your
namespace, and you should keep out of it!  Anything beginning with two
underscores _belongs_ to the internals of the compiler/libc implementation,
and if you define such macros / functions / variables / any other kind of
name in your code, your code is no longer valid C according to the language
spec.

[  Nor are you allowed to define anything beginning with 'is', since all
such names are reserved for the is-{space,print,alpha,upper,lower} family of
functions.  The same goes for many of the other library functions; for full
details, see 7.1.3 "Reserved identifiers" in the C language spec, and also
7.26 "Future library directions".  ]


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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