Article View: comp.std.c
Article #768Re: Empty source file
From: Christoph Kuenkel
Date: Mon, 16 Oct 1989 20:33
Date: Mon, 16 Oct 1989 20:33
20 lines
1279 bytes
1279 bytes
In article <9802@chinet.chi.il.us>, kdb@chinet.chi.il.us (Karl Botts) writes:
> [..................................................]. 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.
There are loaders which have trouble with modules without
symbols! You'd better insert something like
#if cond
usefull code
#else
static nop() {}
#endif
and hope that the optimizer does not strike you :-)
--
# include <std/disclaimer.h>
Christoph Kuenkel/UniWare GmbH Kantstr. 152, 1000 Berlin 12, West Germany
ck@tub.BITNET ckl@uwbln {unido,tmpmbx,tub}!uwbln!ckl
Technical Details
Message-ID:
<1891@uwbull.uwbln.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!unido!tub!uwbln!cklReferences:
<10955@riks.csl.sony.co.jp> <9802@chinet.chi.il.us>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!unido!tub!uwbln!ckl From: ckl@uwbln.UUCP (Christoph Kuenkel) Newsgroups: comp.std.c Subject: Re: Empty source file Message-ID: <1891@uwbull.uwbln.UUCP> Date: 16 Oct 89 20:33:15 GMT References: <10955@riks.csl.sony.co.jp> <9802@chinet.chi.il.us> Distribution: comp Organization: UniWare GmbH, Berlin Lines: 20