Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!bellcore!tness7!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: static list initialization Message-ID: <1921@ficc.uu.net> Date: 17 Oct 88 13:52:34 GMT References: <196@donk.UUCP> <8000008@modcomp> Organization: SCADA Lines: 14 > Without the 'extern', the compiler can't initialize 'head'. But with it, I > get a 'non-standard extension' warning, although everything works just fine. Would this work? static struct whatever emptylist[2] = { { &emptylist[1], NULL, NULL }, { NULL, &emptylist[0], NULL } }; #define head &emptylist[0]; #define tail &emptylist[1]; -- Peter da Silva `-_-' Ferranti International Controls Corporation. "Have you hugged U your wolf today?" peter@ficc.uu.net