Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!pacbell!att!chinet!kdb From: kdb@chinet.chi.il.us (Karl Botts) Newsgroups: comp.std.c Subject: Re: Empty source file Message-ID: <9802@chinet.chi.il.us> Date: 15 Oct 89 08:25:43 GMT References: <10955@riks.csl.sony.co.jp> Reply-To: kdb@chinet.chi.il.us (Karl Botts) Organization: Chinet - Chicago Public Access UNIX Lines: 12 In article <10955@riks.csl.sony.co.jp> diamond@ws.sony.junet (Norman Diamond) writes: >The grammar given in the standard does not permit an empty source >file. Strangely enough, a preprocessor source file may be empty, Are you sure this is true; I find it hard to believe. It is quite reasonable and not uncommon to have source files which are empty after the preoprocessor gets done with them. I have had such in the past, and have explicitly tested it on xeveral compilers, and empty source files do compile to do-nothing objects, which seems right to me. Maybe you are thinking of an empty program, which is of course illegal; the address of main() must be resolved somehow.