Article View: comp.std.c
Article #810Re: question about linkage
From: Henry Spencer
Date: Sat, 21 Oct 1989 23:57
Date: Sat, 21 Oct 1989 23:57
15 lines
1175 bytes
1175 bytes
In article <80@bomb.next.com> mself@bomb.UUCP (My Account) writes: >How, then, can you forward declare an object with internal >linkage whose size isn't known when you forward declare it? >[old solution which sometimes works is non-ANSI, ANSI solution is not > acceptable to some old compilers] This is one of those annoying cases where you just have to break down and say "#if __STDC__". Many people, including me, would have preferred that the linkage of a tentative definition be tentative, and subject to revision when a real definition shows up. This does, unfortunately, cause real difficulties for one-pass compilers on machines with difficult linkers. The old behavior that you refer to wasn't dependably portable. -- A bit of tolerance is worth a | Henry Spencer at U of Toronto Zoology megabyte of flaming. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
Technical Details
Message-ID:
<1989Oct21.235728.23815@utzoo.uucp>Path:
arc1-ca.pugleaf.net!utzoo!henryReferences:
<80@bomb.next.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: question about linkage Message-ID: <1989Oct21.235728.23815@utzoo.uucp> Organization: U of Toronto Zoology References: <80@bomb.next.com> Date: Sat, 21 Oct 89 23:57:28 GMT