Article View: news.software.nntp
Article #64294Re: xBin library header
From: Chris
Date: Thu, 06 Mar 2003 18:34
Date: Thu, 06 Mar 2003 18:34
15 lines
1784 bytes
1784 bytes
On Thu, 06 Mar 2003 10:12:36 -0800, Russ Allbery wrote: > This is a common but technically incorrect way of doing header guards. At > least in ISO C, and I believe in ISO C++ as well, all identifiers > beginning with __ or with _ and a capital letter are reserved for the > implementation. That means that user code is not supposed to use such > identifiers anywhere, since you may be trampling on identifiers used by > the compiler. > > _xbin_h_ would be okay. I generally just use XBIN_H without any > underscores, relying on the _H to keep header guard macros out of the way > of other things. Thanks for the tip! I never knew that.
Technical Details
Message-ID:
<pan.2003.03.06.18.34.24.453160@rogers.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news02.bloor.is.net.cable.rogers.com.POSTED!not-for-mailReferences:
<pan.2003.03.06.16.36.27.43643@rogers.com> <ylwujc1i0b.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <pan.2003.03.06.18.34.24.453160@rogers.com> Subject: Re: xBin library header Date: Thu, 06 Mar 2003 18:34:25 GMT From: "Chris" <nobody@rogers.com> References: <pan.2003.03.06.16.36.27.43643@rogers.com> <ylwujc1i0b.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news02.bloor.is.net.cable.rogers.com.POSTED!not-for-mail User-Agent: Pan/0.13.4 (She had eyes like strange sins. (Debian GNU/Linux)) Newsgroups: news.software.nntp MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 14 NNTP-Posting-Host: 24.114.32.59 X-Complaints-To: abuse@rogers.com X-Trace: news02.bloor.is.net.cable.rogers.com 1046975665 24.114.32.59 (Thu, 06 Mar 2003 13:34:25 EST) NNTP-Posting-Date: Thu, 06 Mar 2003 13:34:25 EST