Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!munnari.oz.au!manuel!anucsd!csis!dave From: dave@csis.dit.csiro.au (David Campbell) Newsgroups: comp.sys.amiga.programmer Subject: Is this valid C? Message-ID: <1991May5.222328.16225@csis.dit.csiro.au> Date: 5 May 91 22:23:28 GMT Organization: csis.dit.csiro.au Lines: 30 Is this valid C? Its just that this will compile on my favourite Unix compiler but won't on Lattice V5.10. I wish G++ was around for the Amiga!!!!!! It turns out that C++ (on my Sparc) spits out similar code (I'm using C++ on the sun to develop programs for the Amiga). /*--------------------------------------------------------------------------*/ extern struct thing t; struct thing { int n; char *s; }; main() { t.n = 10; t.s = "hello"; } /*--------------------------------------------------------------------------*/ -- Dave Campbell -- dave@csis.dit.csiro.au -- dave campbell