delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/11/02:48:46

From: marcus AT bighorn DOT dr DOT lucent DOT com (139a80000-HallMDR313237x10)
Subject: Re: bool and gcc
11 Aug 1998 02:48:46 -0700 :
Message-ID: <199808102151.PAA21893.cygnus.gnu-win32@chorus.dr.lucent.com>
Reply-To: "139a80000-HallM(DR3132)37x10" <marcus AT bighorn DOT dr DOT lucent DOT com>
To: gnu-win32 AT cygnus DOT com, inquisit AT friko6 DOT onet DOT pl

Nikki (aka Inquisitor Nikodemus) asks:

> What does the following mean ?
> 
> .cc:120: warning: name lookup of `index' changed for new ANSI `for' scoping
> .cc:119: warning:   using obsolete binding at `index'
> 
> What's that "new ANSI 'for' scoping" ?

I believe that this is dealing with code that looks like:
	for (int i = 0; i < limit; i++)
		some_code;
	more_code;

In the original ANSI blessing, the scope of `i' extended into more_code, but
the new blessed standard has it extending only through some_code.

Currently, it's probably best to not use this at all.

> And the next one :
> _x.cc:122: request for member `figure' in `nodebufstat', which is of
> non-aggregate type `node *'
> 
> Line 122 is :  *(nodebufstat).figure=-1 ;
> 

Try it this way:
		(*nodebufstat).figure = -1;

Or, probably more directly:
		nodebufstat->figure = -1;

--
marcus hall
-
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