Path: 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 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 Christoph Kuenkel/UniWare GmbH Kantstr. 152, 1000 Berlin 12, West Germany ck@tub.BITNET ckl@uwbln {unido,tmpmbx,tub}!uwbln!ckl