Path: utzoo!attcan!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond!diamond From: diamond@diamond.csl.sony.junet (Norman Diamond) Newsgroups: comp.lang.c Subject: Re: declarations in include files: how do YOU feel? Keywords: declarations include Message-ID: <10246@socslgw.csl.sony.JUNET> Date: 12 May 89 09:46:07 GMT References: <179@larry.sal.wisc.edu> <11318@bloom-beacon.MIT.EDU> <180@larry.sal.wisc.edu> Sender: news@csl.sony.JUNET Reply-To: diamond@csl.sony.junet (Norman Diamond) Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan Lines: 20 In article <180@larry.sal.wisc.edu> jwp@larry.sal.wisc.edu.UUCP (Jeffrey W Percival) writes: >Another question on this style: does one include lib.h in the >subroutine files that make up lib.a? Yes. >That is, if lib.h contains >an "extern char foo()" and foo.c includes lib.h and then goes >on to define foo, is this a problem? In K&R-I and ANSI and any non-broken compiler, it is specifically permitted. (Although K&R-I indirectly contradicts itself on this point, it directly states that this is permitted.) -- Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.co.jp@relay.cs.net) The above opinions are my own. | Why are programmers criticized for If they're also your opinions, | re-implementing the wheel, when car you're infringing my copyright. | manufacturers are praised for it?