Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uwm.edu!csd4.csd.uwm.edu!markh From: markh@csd4.csd.uwm.edu (Mark William Hopkins) Newsgroups: comp.lang.c Subject: Re: A question on C programming style Message-ID: <10999@uwm.edu> Date: 12 Apr 91 21:06:36 GMT References: <1991Apr12.103621.8907@umiami.ir.miami.edu> Sender: news@uwm.edu Organization: University of Wisconsin - Milwaukee Lines: 17 In article <1991Apr12.103621.8907@umiami.ir.miami.edu> devebw9f@miavax.ir.miami.edu writes: >How do the guru's on the net feel about the following two styles? (nested includes) ANSI-C doesn't care if you include the same .h file twice or more (if they contain only declarations and not definitions). They went out of their way (the standards-makers) to ensure this to be so. Anyway, if you include a.h into b.h, a.h is usually make secure by nesting it in an #ifndef: #ifndef A_INCLUDED # define A_INCLUDED ... rest of a.h #endif might have something like this in it...