🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49864

?? typedef initialised ??

#49864
From: Alain Filbois
Date: Fri, 17 Dec 1993 17:22
28 lines
1480 bytes
Hi,

I have found in an old .h the following typedef :

typedef struct foo {
int x, y;
double coef;
} = { 512, 512, 4.56 };

With sunOS 4.1.X and cc, no problem.

But with gcc, no matter.

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.

Have you got an idea ?

Alain
-- 
-------------------------------------------------------------
!	 Alain FILBOIS		!  Tel : (33) 83.59.20.67.  !
! CRIN / CNRS - INRIA Lorraine	! 			    !
! 	    B.P. 239		!  Fax : (33) 83.41.30.79.  !
!  54506 Vandoeuvre-Les-Nancy 	!			    !
!	     France		! E-mail : filbois@loria.fr !
-------------------------------------------------------------
Technical Details
Message-ID: <2esps6$1lo@muller.loria.fr>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!scsing.switch.ch!swidir.switch.ch!univ-lyon1.fr!jussieu.fr!univ-lille1.fr!ciril.fr!muller!loria.fr!filbois

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,74b64b9966a3c4ec,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-17 13:33:36 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!scsing.switch.ch!swidir.switch.ch!univ-lyon1.fr!jussieu.fr!univ-lille1.fr!ciril.fr!muller!loria.fr!filbois
From: filbois@loria.fr (Alain Filbois)
Newsgroups: gnu.gcc.help
Subject: ?? typedef initialised ??
Date: 17 Dec 1993 17:22:13 GMT
Organization: INRIA-Lorraine & CRIN/CNRS, Nancy, France
Lines: 29
Distribution: world
Message-ID: <2esps6$1lo@muller.loria.fr>
NNTP-Posting-Host: colle.loria.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Keywords: gcc, cc-sunOS4.1.X