🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #755

Re: Empty source file

#755
From: Karl Botts
Date: Sun, 15 Oct 1989 08:25
12 lines
1100 bytes
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.
Technical Details
Message-ID: <9802@chinet.chi.il.us>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!pacbell!att!chinet!kdb
References: <10955@riks.csl.sony.co.jp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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