🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49894

Re: ?? typedef initialised ?? Oups!

#49894
From: Fergus Henderson
Date: Mon, 20 Dec 1993 07:54
22 lines
1449 bytes
filbois@loria.fr (Alain Filbois) writes:

>>I have found in an old .h the following typedef :
>>The full program has 49 .c files, and 12 .h.
>>I don't want to patch these files, one by one, in "manual" mode,
>>to initialise all the declarations.
>>
>typedef struct foo {
>int x, y;
>double coef;
>} foo = { 512, 512, 4.56 };
>
>THIS kind of typedef is accepted by cc (SUNOS4.1.X),
>but NOT by gcc.

I think that your code is illegal.
I'm afraid you'll have to fix your code manually.

-- 
Fergus Henderson        |   "People who brook no compromise in programming
                        |   languages should program in lambda calculus or
fjh@munta.cs.mu.OZ.AU   |   machine language, depending." --Andrew Koenig.
Technical Details
Message-ID: <9335418.17109@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
References: <2esps6$1lo@muller.loria.fr> <2et20i$2ej@muller.loria.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,74b64b9966a3c4ec
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-19 23:56:53 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: ?? typedef initialised ?? Oups!
Message-ID: <9335418.17109@mulga.cs.mu.OZ.AU>
Keywords: gcc, cc-sunOS4.1.X
Sender: news@cs.mu.OZ.AU
Organization: Computer Science, University of Melbourne, Australia
References: <2esps6$1lo@muller.loria.fr> <2et20i$2ej@muller.loria.fr>
Date: Mon, 20 Dec 1993 07:54:58 GMT
Lines: 22