delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/09/00:34:44

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: Non-static initializers in X11R6.4
9 Jan 1999 00:34:44 -0800 :
Message-ID: <199901090707.BAA09754.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <852566F3 DOT 006E6ACA DOT 00 AT D51MTA10 DOT pok DOT ibm DOT com>
To: setera AT us DOT ibm DOT com
Cc: gnu-win32 AT cygnus DOT com

setera AT us DOT ibm DOT com writes:
> 
> I'm trying to build X11R6.4 on my own using Sergey's patches.  On a number
> of the programs (such as the xkb*), I get errors that I'm trying to use
> non-static initializers of the form outside the scope of a function:
> 
> FILE *yyin = stdout;
> 
> Is there any way to get the compiler to just handle these?  I would assume
> if there was code changes that they would have been Sergey's patches.

Ah, the joys of dealing with non-portable code! This is in fact a common
problem with lots of existing code (shows up in the output of older
versions of lex as well).

ANSI C doesn't guarantee that stdout/in/err are going to be manifest
constants that will allow the above construct. It however is well
formed C++ code. Perhaps Sergey can shed some light on what he did
to make it all work.

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019