19.4 - is typedef considered to be a type qualifier?

6.19 Preprocessing Directives

Moderators: misra-c, david ward

Post Reply
mishak
Posts: 10
Joined: Thu Jun 21, 2007 3:58 pm

19.4 - is typedef considered to be a type qualifier?

Post by mishak » Thu Apr 14, 2011 5:07 pm

The C standard states that "The typedef specifier is called a ‘‘storage-class specifier’’ for syntactic convenience only;".

Does 19.4 allow a macro to expand to 'typedef'?

misra-c
Posts: 572
Joined: Thu Jan 05, 2006 1:11 pm

Re: 19.4 - is typedef considered to be a type qualifier?

Post by misra-c » Wed May 25, 2011 2:55 pm

Yes, typedef is considered to be a storage-class specifier.
---
Posted by and on behalf of
the MISRA C Working Group

Post Reply

Return to “6.19 Preprocessing Directives”