A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-October/029521.html below:

[Python-Dev] Multiple Inclusion of Header Files

[Python-Dev] Multiple Inclusion of Header Files [Python-Dev] Multiple Inclusion of Header FilesNeal Norwitz neal@metaslash.com
Fri, 11 Oct 2002 09:09:16 -0400
On Fri, Oct 11, 2002 at 07:48:52AM -0400, Guido van Rossum wrote:
> > > is there any reason why these files:
> > >     graminit.h
> > >     patchlevel.h 
> > >     pyconfig.h (aka pyconfig.h.in)
> > > 
> > > don't protect against being included multiple times?
> > 
> > I think they cannot possibly be included multiple times in a correct
> > application, since a correct application does not directly include
> > them, anyway.
> 
> But that's true of any .h file that's included by Python.h, isn't it?
> And there's only a handful of .h files that Python.h doesn't include...

I don't really think there is much to be gained by adding protection.
It's unlikely the files would be included directly by an application.
Even if the files are included multiple times, the worst that should
happen is a redefined warning.

Neal



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4