This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] microMIPS support
On 04/27/2012 03:48 PM, Maciej W. Rozycki wrote:
> "const type *var" is a pointer to a variable of "const type" type.
> "type *const var" is a const pointer to a variable of "type" type.
>
>>> > > At the time I learnt C (some 18 years ago) that certainly wasn't a
>>> > > construct I had seen in any language reference
>> >
>> > I do not see any problem using const for an array, what specifically do you
>> > see wrong here?
> Not a const array, but a const pointer.
There's a c89 draft publicly available at:
http://nepsweb.co.uk/langstand/isoC/gordon/ansi-c89u.txt
And '3.5.4.1 Pointer declarators' describes const pointers.
--
Pedro Alves