Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!cs.utexas.edu!uunet!sdrc!mustard From: mustard@sdrc.UUCP (Sandy Mustard) Newsgroups: comp.lang.c Subject: Re: A solution to the multiple inclusion problem Summary: Iinclude files Keywords: #include c Message-ID: <926@sdrc.UUCP> Date: 24 Oct 89 21:50:59 GMT References: <14240@well.UUCP> <1989Oct23.191634.6345@cs.rochester.edu> <14790@bfmny0.UU.NET> Distribution: comp Organization: SDRC, Cincinnati Lines: 19 A solution to multiple include file inclusion that I propose would be: #exit thus you could write: #ifdef this_h_file #exit #define this_h_file ... #endif The preprocessor/compiler on seeing the #exit directive could ignore everything following it in the file (and could simply close the file.) Sandy Mustard mustard@sdrc.UU.NET