A solution to the multiple inclusion problem

Marco S Hyman marc at dumbcat.UUCP
Sun Oct 29 07:19:22 AEST 1989


In article <1011 at cirrusl.UUCP> dhesi%cirrusl at oliveb.ATC.olivetti.com (Rahul Dhesi) writes:
    In article <1088 at odin.SGI.COM> shap at delrey.sgi.com (Jonathan Shapiro)
    writes:
    
    >   #include FRED_H
    
    Please be alert for problems.  K&R requires the token after the
    "#include" to be a filename enclosed in double quotes or angle
    brackets, not an arbitrary symbol.

And the C compiler shipped with System V/386 3.2 (ISC's flavor) coffs
(I couldn't help myself ;-) on that one -- At least it didn't like
#include __FILE__.  (Another reason to use gcc/g++).

--marc
-- 
// Marco S. Hyman		{ames,pyramid,sun}!pacbell!dumbcat!marc



More information about the Comp.lang.c mailing list