[Python-Dev] Multiple Inclusion of Header Files (original) (raw)

Guido van Rossum guido@python.org
Thu, 10 Oct 2002 19:58:36 -0400


From SF #607253, header file problems ( http://python.org/sf/607253 ) 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? ie, they don't have: #ifndef PyFILEH #define PyFILEH /* ... */ #endif /* !PyFILEH */

Could've been an oversight. I notice that graminit.h and pyconfig.h are generated files. patchlevel.h was originally a one-liner.

Is there anything that is gained by adding those?

--Guido van Rossum (home page: http://www.python.org/~guido/)