Message-ID: <339C40FA.15F9@piper.hamline.edu> Date: Mon, 09 Jun 1997 12:44:26 -0500 From: Randall Maas Reply-To: rcmaas AT piper DOT hamline DOT edu Organization: Geek Week MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: VBE Bankswitch in Pmode Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 206.11.59.48 Lines: 17 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk >> #if !defined(__GO32_H) >> #include >> #endif >All those #ifs and #endifs are redundant: all of the header files in >question are idempotent, that is wrapped in the same #ifs inside >themselves to begin with. All header files that are distributed with >DJGPP are. Any decent header file is... True. But having those checks inside our your .c .h files is also good. If you didn't, the cpp has to *load* and *parse* the .h file again, even though it adds nothing. By checking to see if you already included it, you can save yourself the load and scan time. (Of course, a good file cache also helps trim down the load time). Randy Maas randym AT xiotech DOT com