Re: How to understand this
From: Ulrich Eckhardt (doomster_at_knuut.de)
Date: 12/15/04
- Next message: bytekeeper: "Re: Conditional entries in Dirs file"
- Previous message: Vinay Satishchandra Trivedi: "Board Support Package for ITONA-TC3531 using Windows CE.NET 4.2"
- In reply to: Rui Tang: "How to understand this"
- Next in thread: Rui Tang: "Re: How to understand this"
- Reply: Rui Tang: "Re: How to understand this"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Dec 2004 09:57:24 +0100
Rui Tang wrote:
> typedef MEMBLOCK *SECTION[BLOCK_MASK+1];
>
> A little bit confused with the usage of the last typedef. If a variable
> is then declared as SECTION, like the following statement:
>
> SECTION NKSection;
>
> how will NKSection look like in memory?
>
> Can anyone help to translate this in a more understandable way? Thanks
> in advance.
You have to read typedefs from the inside out (reading from left to right
only applies when typedefing objecttypes, not for functions or arrays),
starting at the newly introduced name. In this case, SECTION is an array of
(BLOCK_MASK+1) pointers to MEMBLOCK.
Uli
- Next message: bytekeeper: "Re: Conditional entries in Dirs file"
- Previous message: Vinay Satishchandra Trivedi: "Board Support Package for ITONA-TC3531 using Windows CE.NET 4.2"
- In reply to: Rui Tang: "How to understand this"
- Next in thread: Rui Tang: "Re: How to understand this"
- Reply: Rui Tang: "Re: How to understand this"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|