Re: Looking for header inclusion clean-up tool

"Martin Ambuhl" <mambuhl@tiac.net>
16 Aug 1998 22:37:37 -0400

          From comp.compilers

Related articles
Looking for header inclusion clean-up tool wprager@ca.newbridge.com (Walter Prager) (1998-08-10)
Re: Looking for header inclusion clean-up tool wy2lam@undergrad.math.uwaterloo.ca (Michael Lam) (1998-08-13)
Re: Looking for header inclusion clean-up tool dhansen@btree.com (1998-08-13)
Re: Looking for header inclusion clean-up tool derek@knosof.co.uk (1998-08-13)
Re: Looking for header inclusion clean-up tool mambuhl@tiac.net (Martin Ambuhl) (1998-08-16)
| List of all articles for this month |

From: "Martin Ambuhl" <mambuhl@tiac.net>
Newsgroups: comp.lang.c++,comp.compilers,comp.lang.c
Date: 16 Aug 1998 22:37:37 -0400
Organization: Nocturnal Aviation
References: 98-08-064 98-08-077
Keywords: C, C++, comment

Michael Lam wrote
|Are you using the "industry-strength" header #defines? For example, if
|you don't want your function prototype to be read more than once, put
this
|into your heaader file: (e.g. myheader.h)
|
|#ifndef _myheader_h_
|#define _myheader_h_


_myheader_h_ is reserved for use as an identifier with file scope, and
so is illegal here.


At least it is better that _Myheader_h_ or __myheader_h_ which are
reserved for any use.


If you use Myheader_H you will do fine.


Martin Ambuhl (mambuhl@tiac.net)
[Several other people also pointed out this problem. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.