On 30 July 2012 17:01, Derek M Jones <[email protected]> wrote: > const const void *p; > used to be a constraint violation, but in C11 this was removed to > make things less tiresome for automatic code generators.
Speaking of type qualifiers, there is an interesting article "Type qualifiers in C" at http://www.bezem.de/pdf/tqinc.pdf which discusses them in detail: Abstract Type qualifiers are part of the C language since 1989 (const and volatile), 1999 (restrict), respectively 2011 (_Atomic). They are used to qualify types, modifying the properties of variables in certain ways. Since qualifiers are one of the lesser-understood features of the language, this article aims at experienced C programmers, and explains the reasoning behind these qualifiers. BR Håkon Løvdal _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
