Subject: Re: quick question to C programmers
To: Georg Schwarz <georg.schwarz@freenet.de>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: tech-pkg
Date: 04/07/2005 17:01:31
Am 07.04.2005 um 16:39 Uhr +0200 schrieb Georg Schwarz:
>I can reproduce the problem by creating a file with the following two lines
>and compiling it:
>
>#include <stdio.h>
>FILE *a = {stdin}, *b = {stdout};

Interesting. Works fine for me with both gcc 3.3.3 (i386 netbsd-2) 
and egcs-1.1.2 (mac68k netbsd-1-5-4).

The preprocessor output has

FILE *a = { (&__sF[0]) }, *b = { (&__sF[1]) };

in both cases, so the curly braces look redundant.

	hauke

-- 
/~\  The ASCII Ribbon Campaign                    Hauke Fath
\ /    No HTML/RTF in email	        Institut für Nachrichtentechnik
  X     No Word docs in email	                  TU Darmstadt
/ \  Respect for open standards              Ruf +49-6151-16-3281