Mail Archives: cygwin/1998/08/11/15:04:34
On Mon, 10 Aug 1998, Inquisitor Nikodemus wrote:
> Hey!
>
> Does gcc (egcs exactly) support boolean (bool) type?
Yup. Should do.
> 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" ?
for (int index = 0; index < 5; index++) {
// index variable only defined here
}
// index variable no longer defined here.
(The old 'for' scoping meant that index was valid after the for loop as
well, which leads to problems when you type something like:
for (int i = 0; i < 5; i++) { ... }
for (int i = 0; i < 5; i++) { ... }
Because it moans about i being redefined.)
> 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 ;
Use
nodebufstat->figure
or
(*nodebufstat).figure
The problem is that the '.' binds more strongly than the '*'
Cheers
> thats the structure "node" :
>
> typedef struct {
> char figure;
> short base1,base2;
> } node;
>
> ... and that's declaration of nodebufstat pointer :
>
> node *nodebufstat=&stattab[0];
>
> stattab is an array of node type :
>
> node stattab[16];
>
> What is that ?
>
> /greetz
> Nikki (aka Inquisitor Nikodemus)
>
> -
> 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".
>
-
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 -