Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!sun.soe.clarkson.edu!nelson
From: nelson@sun.soe.clarkson.edu (Russ Nelson)
Newsgroups: comp.lang.c
Subject: missing struct vs zero length struct?
Message-ID: 
Date: 5 Dec 88 19:24:48 GMT
Sender: news@sun.soe.clarkson.edu
Reply-To: nelson@clutx.clarkson.edu
Organization: Clarkson University, Postdam NY
Lines: 18

Now that I have Turbo C 2.0 and Turbo Debugger, I find that compiling
for source level debugging conflicts with a standard information
hiding scheme, leaving structures undefined.  :-(  Fortunately, Turbo C
doesn't complain about zero length structures.

What are the portability considerations of defining zero length structures?
Like this:

struct foo {
#ifdef INTERNAL
int bar, baz;
#endif
};

--
--russ (nelson@clutx [.bitnet | .clarkson.edu])
To surrender is to remain in the hands of barbarians for the rest of my life.
To fight is to leave my bones exposed in the desert waste.