[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Typdef chick 'n egg situation.. way out ?
From: |
Vincent Trouilliez |
Subject: |
Re: [avr-gcc-list] Typdef chick 'n egg situation.. way out ? |
Date: |
Wed, 21 Jan 2009 19:00:53 +0100 |
On Wed, 21 Jan 2009 09:33:43 -0800
Dean Ferreyra <address@hidden> wrote:
> Also, Vince, do you really mean to use a "flexible array" for the
> items field; i.e., leaving the size of items unspecified?
Yes.. well it's just out of convenience really. When I
define/initialise a structure of that type, I just fill it in with
whatever number of items a given menu/submenu happens to have, then
GCC finds out by itself how many items there are, and sizes the array
accordingly.
It's like when initialising strings: char text[] = ""blah blah";
it's too much to count how many characters there are in each and every
string you define, GCC is much quicker (and more reliable) at counting
letters than I am ! ;-)
--
Vince
- [avr-gcc-list] Typdef chick 'n egg situation.. way out ?, Vincent Trouilliez, 2009/01/21
- RE: [avr-gcc-list] Typdef chick 'n egg situation.. way out ?, larry barello, 2009/01/21
- Re: [avr-gcc-list] Typdef chick 'n egg situation.. way out ?, Vincent Trouilliez, 2009/01/21
- Re: [avr-gcc-list] Typdef chick 'n egg situation.. way out ?, Dean Ferreyra, 2009/01/21
- Re: [avr-gcc-list] Typdef chick 'n egg situation.. way out ?,
Vincent Trouilliez <=
- Re: [avr-gcc-list] Typdef chick 'n egg situation.. way out ?, Dean Ferreyra, 2009/01/21
- Re: [avr-gcc-list] Typdef chick 'n egg situation.. way out ?, Vincent Trouilliez, 2009/01/21
- RE: [avr-gcc-list] Typdef chick 'n egg situation.. way out ?, larry barello, 2009/01/21
- Re: [avr-gcc-list] Typdef chick 'n egg situation.. way out ?, Vincent Trouilliez, 2009/01/21
- Re: [avr-gcc-list] Typdef chick 'n egg situation.. way out ?, Dave Hylands, 2009/01/21
- RE: [avr-gcc-list] Typdef chick 'n egg situation.. way out ?, Schwichtenberg, Knut, 2009/01/22