Article View: gnu.gcc.help
Article #49866Re: ?? typedef initialised ?? Oups!
From: Alain Filbois
Date: Fri, 17 Dec 1993 19:41
Date: Fri, 17 Dec 1993 19:41
51 lines
1969 bytes
1969 bytes
filbois@loria.fr (Alain Filbois) says :
>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
>--
So...
I'm very tired today, but tiredness is not a apology, just
an explanation. Sorry for the mistake!
The typedef, in fact, is :
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.
Of course, the previous typedef is not possible.
Sorry again !
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:
<2et20i$2ej@muller.loria.fr>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!pipex!zaphod.crihan.fr!univ-lille1.fr!ciril.fr!muller!loria.fr!filboisReferences:
<2esps6$1lo@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-17 17:55:53 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!pipex!zaphod.crihan.fr!univ-lille1.fr!ciril.fr!muller!loria.fr!filbois From: filbois@loria.fr (Alain Filbois) Newsgroups: gnu.gcc.help Subject: Re: ?? typedef initialised ?? Oups! Date: 17 Dec 1993 19:41:06 GMT Organization: INRIA-Lorraine & CRIN/CNRS, Nancy, France Lines: 52 Distribution: world Message-ID: <2et20i$2ej@muller.loria.fr> References: <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